From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Some developement questions Date: Thu, 06 Sep 2018 16:48:07 +0300 Message-ID: <8336umybxk.fsf@gnu.org> References: <87sh36inql.fsf@himinbjorg.adminart.net> <877ekigiiw.fsf@himinbjorg.adminart.net> <837ekhb2me.fsf@gnu.org> <87zhxcbmtr.fsf@himinbjorg.adminart.net> <83in409lub.fsf@gnu.org> <871sanb71j.fsf@himinbjorg.adminart.net> <87k1oeaofu.fsf@ada> <20180825103413.gbm5stsl67j6weow@Ergus> <87k1od7vzf.fsf@himinbjorg.adminart.net> <83wosd5h3x.fsf@gnu.org> <871sakzssu.fsf@himinbjorg.adminart.net> <83bm9n6f7d.fsf@gnu.org> <87tvneql3i.fsf@himinbjorg.adminart.net> <83o9dl2oob.fsf@gnu.org> <87y3coopyf.fsf@himinbjorg.adminart.net> <8736uvmn44.fsf@himinbjorg.adminart.net> <87y3chqre4.fsf@toy.adminart.net> <87va7j65s6.fsf@toy.adminart.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1536241575 28075 195.159.176.226 (6 Sep 2018 13:46:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2018 13:46:15 +0000 (UTC) Cc: fgunbin@fastmail.fm, emacs-devel@gnu.org To: hw Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 06 15:46:11 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxubq-00078J-Bp for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2018 15:46:10 +0200 Original-Received: from localhost ([::1]:33512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxudw-0007fM-Ju for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2018 09:48:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxudp-0007fE-Oc for emacs-devel@gnu.org; Thu, 06 Sep 2018 09:48:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxudl-000235-48 for emacs-devel@gnu.org; Thu, 06 Sep 2018 09:48:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxudk-00022E-V5; Thu, 06 Sep 2018 09:48:09 -0400 Original-Received: from [176.228.60.248] (port=1816 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fxudk-0003TO-Hz; Thu, 06 Sep 2018 09:48:08 -0400 In-reply-to: <87va7j65s6.fsf@toy.adminart.net> (message from hw on Wed, 05 Sep 2018 22:36:09 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229344 Archived-At: > From: hw > Date: Wed, 05 Sep 2018 22:36:09 +0200 > Cc: emacs-devel@gnu.org > > > Emacs cannot guess for the user when she needs or does not need a menu > > bar or a tool bar. You have to instruct it to, somehow. > > Can I do that per mode? You can enable/disable menu-bar-mode in a mode hook. > So I could have them automatically enabled when in info mode and > automatically disabled when not? Emacs could automatically remember > the last setting for each mode I used, so no additional instructing > would be necessary. Save your mode hooks in your .emacs, and Bob's your uncle.