unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Automatic minor modes?
@ 2018-04-14 14:56 Lars Ingebrigtsen
  2018-04-14 11:49 ` Charles A. Roelli
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-14 14:56 UTC (permalink / raw)
  To: emacs-devel

I was going to write a mode for ~/.authinfo and ~/.netrc that would
cover up the passwords visually so that things are slightly less "eek"
if somebody should happen to walk behind you while you're editing that
file.

But then it was suggested that this should be a minor mode, and that
makes sense: There might well be other kinds of files where you'd rather
cover stuff up, and the minor mode could allow hooks to define syntaxes
and stuff.

But then back to the original remit: ~/.authinfo.  So I now have to
write a major mode for ~/.authinfo that will basically do nothing else
than switch this new minor mode on...  er...  `hide-passwords-mode',
let's call it.

Do we have a method for this?  That is, a way to say "this major mode
will activate these minor modes, unless the user has disabled that"?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2018-10-14 20:55 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-14 14:56 Automatic minor modes? Lars Ingebrigtsen
2018-04-14 11:49 ` Charles A. Roelli
2018-04-14 18:59   ` Lars Ingebrigtsen
2018-04-14 15:23 ` Yuri Khan
2018-04-14 15:27   ` Lars Ingebrigtsen
2018-06-27  1:31     ` Ted Zlatanov
2018-07-22 12:26       ` Lars Ingebrigtsen
2018-07-22 15:51         ` Clément Pit-Claudel
2018-07-22 19:01           ` Stefan Monnier
2018-07-22 20:06             ` Clément Pit-Claudel
2018-10-08  1:05               ` Ted Zlatanov
2018-10-08 14:57                 ` Stefan Monnier
2018-10-09 19:44                   ` Ted Zlatanov
2018-10-14  3:59                     ` Ted Zlatanov
2018-10-14 14:44                       ` Eli Zaretskii
2018-10-14 15:48                         ` Ted Zlatanov
2018-10-14 16:05                           ` Eli Zaretskii
2018-10-14 18:23                           ` Hiding passords in authinfo (was: Automatic minor modes?) Stefan Monnier
2018-10-14 19:31                             ` Hiding passords in authinfo Ted Zlatanov
2018-10-14 20:55                               ` Stefan Monnier
2018-04-14 15:39 ` Automatic minor modes? Clément Pit-Claudel
2018-04-14 15:45   ` Lars Ingebrigtsen
2018-04-14 16:40     ` Clément Pit-Claudel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).