Skip to content

Instantly share code, notes, and snippets.

@dyoo
Created September 22, 2013 04:16
Show Gist options
  • Save dyoo/6656643 to your computer and use it in GitHub Desktop.
Save dyoo/6656643 to your computer and use it in GitHub Desktop.
My current .emacs on my Mac OS X laptop
;; These are the settings I'm using for Emacs on my Mac laptop.
;; Turn off the splash screen.
(setq inhibit-splash-screen t)
;; Set the Command key to work like meta.
;; http://superuser.com/questions/297259/set-emacs-meta-key-to-be-the-mac-key
(setq mac-option-key-is-meta nil
mac-command-key-is-meta t
mac-command-modifier 'meta
mac-option-modifier 'none)
;; Setting the PATH to one that we'll get from the shell.
;; http://www.emacswiki.org/emacs/EmacsApp#toc5
(if (not (getenv "TERM_PROGRAM"))
(let ((path (shell-command-to-string
"$SHELL -cl \"printf %s \\\"\\\$PATH\\\"\"")))
(setenv "PATH" path)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment