🔧 (macos) Additional adjustments for emacs-plus

This commit is contained in:
Marcel Kapfer 2025-06-28 15:13:25 +02:00
parent 303ff8b3f6
commit b4a124d292
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -41,7 +41,17 @@ For using the Macbook keyboard effectively with Emacs I made some adjustments ba
(setq mac-option-modifier 'alt) (setq mac-option-modifier 'alt)
(setq mac-right-option-modifier 'none) (setq mac-right-option-modifier 'none)
(setq mac-command-modifier 'meta) (setq mac-command-modifier 'meta)
(global-set-key [kp-delete] 'delete-char)) (global-set-key [kp-delete] 'delete-char)
(add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
(setq ns-pop-up-frames nil))
#+end_src
Additionally, getting the correct path in the App executable is apparently not that simply. Thankfully, [[https://www.sanityinc.com/][Steve Purcell]] wrote the [[https://github.com/purcell/exec-path-from-shell][exec-path-from-shell]] helper.
#+begin_src emacs-lisp
(use-package exec-path-from-shell
:when on-macos
:init (exec-path-from-shell-initialize))
#+end_src #+end_src
** System Detection ** System Detection
@ -54,7 +64,6 @@ My work machine is called “mccarthy” and there is some configuration which I
(string-equal (system-name) "mccarthy")) (string-equal (system-name) "mccarthy"))
#+end_src #+end_src
** Personal Information ** Personal Information
#+begin_src emacs-lisp #+begin_src emacs-lisp