summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2016-02-23 02:39:16 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2016-02-23 02:39:16 (GMT)
commit20f87fa8731714a20259db3c019cac147a59c2a7 (patch)
tree58aec82a6dc87f77d2810c41550b2fb165f9e2a1
parentd5f96962554d061440052f8f1647fedd1590d388 (diff)
downloaddot-files-20f87fa8731714a20259db3c019cac147a59c2a7.zip
dot-files-20f87fa8731714a20259db3c019cac147a59c2a7.tar.gz
dot-files-20f87fa8731714a20259db3c019cac147a59c2a7.tar.bz2
emacs: minor adjustment for Mac-OSX
-rw-r--r--emacs12
1 files changed, 11 insertions, 1 deletions
diff --git a/emacs b/emacs
index 009ebf3..9cff86e 100644
--- a/emacs
+++ b/emacs
@@ -57,7 +57,8 @@
(progn
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(menu-bar-mode -2)
- (scroll-bar-mode -1))
+ (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
+ )
; "Linux" C style by default
; (setq c-default-style "linux")
@@ -96,3 +97,12 @@
; For python files, force a 4-space indentation
(add-hook 'python-mode-hook '(lambda ()
(setq python-indent 4)))
+
+
+;; key bindings
+;; http://www.emacswiki.org/emacs/EmacsForMacOS
+ (when (eq system-type 'darwin) ;; mac specific settings
+ (setq mac-option-modifier 'alt)
+ (setq mac-command-modifier 'control)
+ (global-set-key [kp-delete] 'delete-char) ;; sets fn-delete to be right-delete
+ )