From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ramon Diaz-Uriarte Subject: Re: An org password manager Date: Fri, 16 May 2014 15:03:39 +0200 Message-ID: <87a9ahvpsk.fsf@gmail.com> References: <87d2fklwkv.fsf@gmail.com> <87iopcad7f.fsf@gmail.com> <87fvkg4dw5.fsf@redstar.home> <87ha4v9znr.fsf@gmail.com> <87zjin6p5t.fsf@redstar.home> <874n0uaboh.fsf@gmail.com> <87fvkdzyjm.fsf@redstar.home> <87y4y5c0nu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlHnh-0002ER-LV for emacs-orgmode@gnu.org; Fri, 16 May 2014 09:03:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlHnc-0002dE-KD for emacs-orgmode@gnu.org; Fri, 16 May 2014 09:03:49 -0400 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:38768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlHnc-0002cp-5F for emacs-orgmode@gnu.org; Fri, 16 May 2014 09:03:44 -0400 Received: by mail-wg0-f50.google.com with SMTP id x12so4832503wgg.33 for ; Fri, 16 May 2014 06:03:42 -0700 (PDT) In-reply-to: <87y4y5c0nu.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Jorge A. Alfaro-Murillo" Cc: emacs-orgmode@gnu.org Thanks! I did not know that. Best, R. On Tue, 13-05-2014, at 14:40, Jorge A. Alfaro-Murillo wrote: > 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. -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-25 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdiaz02@gmail.com ramon.diaz@iib.uam.es http://ligarto.org/rdiaz