Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZacJoffe/2f0d7864437fcdc49a6bc1f4fa5db9d5 to your computer and use it in GitHub Desktop.
Save ZacJoffe/2f0d7864437fcdc49a6bc1f4fa5db9d5 to your computer and use it in GitHub Desktop.
;; mac specific titlebar stuff (remove weird icon in titlebar)
;; https://emacs.stackexchange.com/a/40777
(if (eq system-type 'darwin)
(progn
(add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
(add-to-list 'default-frame-alist '(ns-appearance . dark))
(add-to-list 'default-frame-alist '(fullscreen . maximized)) ;; start maximized
(setq ns-use-proxy-icon nil)
(setq frame-title-format nil)))
;; swap meta and super keys to be more like windows
(setq mac-option-modifier 'super)
(setq mac-command-modifier 'meta)
;; fix path related issues to allow emacs to easily access tools like rg
(when (memq window-system '(mac ns x))
(use-package exec-path-from-shell
:config
(exec-path-from-shell-initialize)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment