summaryrefslogtreecommitdiff
path: root/emacs/functions.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/functions.el')
-rw-r--r--emacs/functions.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/functions.el b/emacs/functions.el
index b322af6..37686b3 100644
--- a/emacs/functions.el
+++ b/emacs/functions.el
@@ -62,6 +62,11 @@ returns nil."
(interactive)
(modify-frame-parameters frame '((left . 0.5) (top . 0.5))))
+(defun my/disable-frame-modes ()
+ "Disable select frame modes where appropriate."
+ (dolist (mode '(menu-bar-mode scroll-bar-mode tool-bar-mode))
+ (when (and (fboundp mode) (symbol-value mode)) (funcall mode -1))))
+
(defun my/focus-frame (&optional frame)
"Focus FRAME."
(interactive)