|
From: | GNU Hacker |
Subject: | Re: Function for enabling or disabling emacs bars |
Date: | Mon, 14 Mar 2022 16:02:46 +0100 |
angelomolina--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes: > Would like to have a function that enables or disables emacs bars. Perhaps > using an optional > argument for this? > (defun emacsbars () > "Enables or disables Emacs Bars" > (menu-bar-mode 1) > (tool-bar-mode 1) > (scroll-bar-mode 1)) #+begin_src elisp (defun emacsbars (&optional num) "Enables or disables Emacs Bars" (interactive "p") (menu-bar-mode num) (tool-bar-mode num) (scroll-bar-mode num)) #+end_src Try with: M-x emacsbars RET --> show bars C-u -1 M-x emacsbars RET --> hide bars -- Emacs Lover. FSF Member. Free/Libre Software supporter. stallmansupport.org - Disinformation succeeds because so many people care deeply about injustice but do not take the time to check the facts.
[Prev in Thread] | Current Thread | [Next in Thread] |