emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jorge.a.alfaro@gmail.com (Jorge A. Alfaro-Murillo)
To: emacs-orgmode@gnu.org
Subject: Re: An org password manager
Date: Tue, 13 May 2014 08:40:05 -0400	[thread overview]
Message-ID: <87y4y5c0nu.fsf@gmail.com> (raw)
In-Reply-To: 87fvkdzyjm.fsf@redstar.home

Dear Ramon and Colin,

If you are using an "(add-to-list 'auto-mode-alist ...)" for the gpg
files, that sets the major mode on. If you want to leave the major mode
as Org, do not use auto-mode-alist, but instead use a hook:
(add-hook 'org-mode-hook 'your-function), where your-function should be
one that checks if the file name ends with gpg and if so turns your
sensitivity-mode on.

Alternatively, define another major mode:

#+BEGIN_SRC emacs-lisp
  (define-derived-mode org-but-sensitive-mode org-mode
    ...)
#+END_SRC

and copy in "..." whatever your sensitive-minor-mode has.

Best,

Jorge.

  reply	other threads:[~2014-05-13 12:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-11  5:21 An org password manager Jorge A. Alfaro-Murillo
2014-05-11  5:47 ` Igor Sosa Mayor
2014-05-11  9:15 ` Ramon Diaz-Uriarte
2014-05-11 13:56   ` Colin Baxter
2014-05-12  8:20     ` Ramon Diaz-Uriarte
2014-05-12 14:35       ` Colin Baxter
2014-05-12 22:12         ` Ramon Diaz-Uriarte
2014-05-13 11:51           ` Colin Baxter
2014-05-13 12:40             ` Jorge A. Alfaro-Murillo [this message]
2014-05-14 10:01               ` Colin Baxter
2014-05-16 13:03               ` Ramon Diaz-Uriarte
2014-05-11 17:13   ` Jorge A. Alfaro-Murillo
2014-05-11 17:20     ` Jorge A. Alfaro-Murillo
2014-05-12  8:22       ` Ramon Diaz-Uriarte
2014-05-12 20:51 ` Cayetano Santos
2014-05-21  7:32 ` Bastien
2014-05-21 11:53   ` Michael Albinus
2014-06-05 14:36     ` Jorge A. Alfaro-Murillo
2014-06-06  9:39       ` Michael Albinus
2014-05-31 16:09   ` Jorge A. Alfaro-Murillo
2014-06-01 19:17     ` Bastien
2014-06-02 17:38     ` Bastien
2014-06-02 17:53       ` Jorge A. Alfaro-Murillo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4y5c0nu.fsf@gmail.com \
    --to=jorge.a.alfaro@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).