Created
September 22, 2013 04:16
-
-
Save dyoo/6656643 to your computer and use it in GitHub Desktop.
My current .emacs on my Mac OS X laptop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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