From 1accf297c5a6d4d7d61503985b9ee10fa2b30671 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 5 Jul 2020 21:32:48 +0100 Subject: emacs: Disable the same modes when in server mode Also, always set mac-right-option-modifier to 'none on macOS. --- emacs/init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacs') 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") -- cgit v1.2.3-70-g09d2