[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Function for enabling or disabling emacs bars
From: |
GNU Hacker |
Subject: |
Re: Function for enabling or disabling emacs bars |
Date: |
Mon, 14 Mar 2022 23:08:05 +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))
Other form:
#+begin_src elisp
(defun emacsbars ()
"Enables or disables Emacs Bars"
(interactive)
(menu-bar-mode 'toggle)
(tool-bar-mode 'toggle)
(scroll-bar-mode 'toggle))
#+end_src
M-x emacsbars
Try 2 times, is toggle!
--
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.
Re: Function for enabling or disabling emacs bars,
GNU Hacker <=