How to check which Emacs I am using?

后端 未结 5 995
夕颜
夕颜 2021-02-05 00:19

I have two Emacs (Aquamacs and text-based Emacs) on my Mac.

In my .emacs file, I can check if I\'m using Aquamacs with ...

(boundp \'aquamacs-         


        
5条回答
  •  萌比男神i
    2021-02-05 00:59

    Or, you could use this:

    (if (or (eq window-system 'ns)
            (eq window-system 'mac))
        (message "hello, world!"))
    

    It will only print "hello, world!" when you run a graphical Emacs in OS X.

提交回复
热议问题