[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] An org password manager

From: Ramon Diaz-Uriarte
Subject: Re: [O] An org password manager
Date: Fri, 16 May 2014 15:03:39 +0200
User-agent: mu4e; emacs

Thanks! I did not know that.



On Tue, 13-05-2014, at 14:40, Jorge A. Alfaro-Murillo <address@hidden> 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
>     ...)
> 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

Phone: +34-91-497-2412

Email: address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]