summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles-darwin/emacs/init.el3
-rw-r--r--emacs/init.el4
2 files changed, 5 insertions, 2 deletions
diff --git a/dotfiles-darwin/emacs/init.el b/dotfiles-darwin/emacs/init.el
index bc709fa..a992874 100644
--- a/dotfiles-darwin/emacs/init.el
+++ b/dotfiles-darwin/emacs/init.el
@@ -1,5 +1,4 @@
-(when (display-graphic-p)
- (setq mac-right-option-modifier 'none))
+(setq mac-right-option-modifier 'none)
(let ((gnu-ls "/usr/local/bin/gls"))
(when (file-exists-p gnu-ls)
diff --git a/emacs/init.el b/emacs/init.el
index 431501d..22dc079 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -81,6 +81,10 @@
(add-hook 'before-save-hook 'gofmt-before-save nil t)))
(add-hook 'ibuffer-mode-hook
(lambda () (ibuffer-switch-to-saved-filter-groups "default")))
+(add-hook 'server-switch-hook
+ (lambda ()
+ (menu-bar-mode -1)
+ (scroll-bar-mode -1)))
(add-hook 'sh-mode-hook (lambda () (setq-local sh-basic-offset 2)))
(source-if-exists "dotfiles-${UNAME}/emacs/init.el")