Emacs on macOS

Emacs on macOS

May 7, 2024 | seedling, permanent

tags :

Summary #

I spent some good amount of time, several days (5), to complete the setup on

From this ’s discussion , emacs-mac - I used this one - is the best one.

emacs-macosx #

I downloaded the dmg file and used this emacs. worked with some extra configurations. daemon mode was because of the server-socket-dir location, after removing this it worked; But since it was not working for this reason, I moved on to use “emacs-plus”

#

brew install emacs # without gui brew install --cask emacs # with gui emacs28, on <2023-07-13 Thu>

emacs-plus #

https://github.com/d12frosted/homebrew-emacs-plus

brew install emacs-plus@28 --with-no-frame-refocus --with-mailutils --with-debug --with-imagemagick --with-native-comp
  • Installation on <2023-07-13 Thu>

    I installed with `–with-native-comp` but faced few problems with packages, used following command to install

    brew install emacs-plus@28 --with-no-frame-refocus --with-mailutils --with-debug --with-imagemagick
    
  • Installation on <2023-07-20 Thu>

    brew install emacs-plus@28 --with-dbus --with-no-frame-refocus --with-mailutils --with-debug --with-imagemagick  --with-native-comp
    

    worked

  • Installation on <2023-07-28 Fri>

    brew install emacs-plus@29 --with-dbus --with-no-frame-refocus --with-mailutils --with-debug --with-imagemagick  --with-native-comp
    

    worked

  • issue

    Spent good of time to debug this server-socket-dir setting this to the path ~/.emacs.d/server was not allowing the to communicate with or server

    To check the socket emacs server or daemon is using

     lsof -c Emacs | grep server | tr -s " " | cut -d' ' -f8\
    # /var/folders/jc/kms8fz7j26b8jmc038dt6dcr0000gn/T/emacs501/server
    

#

Best suited to use generic based software on , not necessarily optimized for macOS. sudo port install emacs

emacs-mac-port #

https://news.ycombinator.com/item?id=9594031 https://github.com/railwaycat/homebrew-emacsmacport

Helpful references #

https://github.com/orgs/Homebrew/discussions/3165 emacs-plus and homebrew-emacsport are good for native compilation.


No notes link to this note