diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2020-07-05 21:32:48 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2020-07-05 21:32:48 +0100 |
| commit | 1accf297c5a6d4d7d61503985b9ee10fa2b30671 (patch) | |
| tree | 63ce2b8ed9048ac0767c683d4f86fa2ccf6699e8 /emacs | |
| parent | 09b038046742ef35ee446ee8473663a491805ee2 (diff) | |
emacs: Disable the same modes when in server mode
Also, always set mac-right-option-modifier to 'none on macOS.
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/init.el | 4 |
1 files changed, 4 insertions, 0 deletions
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") |
