From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.a.alfaro@gmail.com (Jorge A. Alfaro-Murillo) Subject: Re: An org password manager Date: Tue, 13 May 2014 08:40:05 -0400 Message-ID: <87y4y5c0nu.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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkC0U-0003zT-R4 for emacs-orgmode@gnu.org; Tue, 13 May 2014 08:40:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkC0K-0001WX-8O for emacs-orgmode@gnu.org; Tue, 13 May 2014 08:40:30 -0400 Received: from plane.gmane.org ([80.91.229.3]:48128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkC0K-0001Us-1F for emacs-orgmode@gnu.org; Tue, 13 May 2014 08:40:20 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WkC0I-0000xK-52 for emacs-orgmode@gnu.org; Tue, 13 May 2014 14:40:18 +0200 Received: from nat-130-132-173-153.central.yale.edu ([130.132.173.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 14:40:18 +0200 Received: from jorge.a.alfaro by nat-130-132-173-153.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 May 2014 14:40:18 +0200 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: emacs-orgmode@gnu.org 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.