Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
916 B

  1. ;; On OS X Emacs doesn't use the shell PATH if it's not started from
  2. ;; the shell. Let's fix that:
  3. (exec-path-from-shell-initialize)
  4. ;; It's all in the Meta
  5. (setq mac-command-modifier 'meta)
  6. (setq mac-option-modifier 'meta)
  7. (defun prelude-swap-meta-and-super ()
  8. "Swap the mapping of meta and super. Very useful for people using their Mac
  9. with a Windows external keyboard from time to time."
  10. (interactive)
  11. (if (eq mac-command-modifier 'super)
  12. (progn
  13. (setq mac-command-modifier 'meta)
  14. (setq mac-option-modifier 'super)
  15. (message "Command is now bound to META and Option is bound to SUPER."))
  16. (progn
  17. (setq mac-command-modifier 'super)
  18. (setq mac-option-modifier 'meta)
  19. (message "Command is now bound to SUPER and Option is bound to META."))))
  20. (define-key prelude-mode-map (kbd "C-c w") 'prelude-swap-meta-and-super)
  21. (menu-bar-mode +1)
  22. (provide 'prelude-osx)