diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2022-01-29 13:16:59 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2022-01-29 13:16:59 +0000 |
| commit | 0eee4defb09d895b1059eac98f64225f841007ac (patch) | |
| tree | f5253a4f8ac57862c09a5e95d9c16f6f24032a7b /emacs/init.el | |
| parent | 9d42200df46bafa2d79b7b315956198fd4c53e80 (diff) | |
emacs: Do a better job at disabling unwanted modes
Diffstat (limited to 'emacs/init.el')
| -rw-r--r-- | emacs/init.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el index 30140ce..bdab985 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -43,9 +43,6 @@ (add-hook 'after-init-hook #'my/display-startup-time) (add-hook 'before-save-hook #'delete-trailing-whitespace) -(my/with-add-hook 'server-switch-hook - (menu-bar-mode -1) - (scroll-bar-mode -1)) (auto-save-mode -1) (auto-save-visited-mode 1) @@ -124,6 +121,9 @@ (dolist (fn '(delete-window split-window-horizontally split-window-vertically)) (advice-add fn :after #'(lambda (&rest _args) (balance-windows)))) +(if (daemonp) (add-hook 'before-make-frame-hook #'my/disable-frame-modes) + (my/disable-frame-modes)) + ;; Bazel |
