[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Function for enabling or disabling emacs bars
From: |
angelomolina |
Subject: |
Re: Function for enabling or disabling emacs bars |
Date: |
Mon, 14 Mar 2022 21:16:45 +0100 (CET) |
Mar 14, 2022, 20:00 by project@gnuhacker.org:
> angelomolina@tutanota.com writes:
>
>> Mar 14, 2022, 15:02 by project@gnuhacker.org:
>>
>>> (defun emacsbars (&optional num)
>>> "Enables or disables Emacs Bars"
>>> (interactive "p")
>>> (menu-bar-mode num)
>>> (tool-bar-mode num)
>>> (scroll-bar-mode num))
>>>
>>> Try with:
>>> M-x emacsbars RET --> show bars
>>> C-u -1 M-x emacsbars RET --> hide bars
>>>
>> Could I also call it using (emacsbars 1) and (emacsbars -1) ?
>>
>
> Yes it also work
>
Thank you. Do you know how to enable a minor-mode globally as I have only made
minor-modes activated with add-hook.
> --
> 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, 2022/03/14