From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: How can I autorun M-x linum-mode when file is opened? Date: Sun, 10 Aug 2014 07:11:20 -1000 Message-ID: References: <87iom0i983.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGWep-0003NM-Rk for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 13:11:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGWeg-00007J-UO for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 13:11:47 -0400 Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:36158) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XGWeg-000072-MR for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 13:11:38 -0400 In-Reply-To: <87iom0i983.fsf@skimble.plus.com> (Sharon Kimble's message of "Sun, 10 Aug 2014 17:46:04 +0100") 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: Sharon Kimble Cc: org-mode Aloha Sharon, Sharon Kimble writes: > How can I have a command auto-run when a file is opened from 'desktop > recovery' please? I want to auto-run "M-x linum-mode" when I open my > daily journal, which stays open all the time. Running that command will > switch off linum-mode for that file, which may stop "file-rot" that I > have observed in the past. This can, at present, only be resolved by > shutting down emacs for half an hour or so, and then restarting it, > and normal functionality will have been restored. Is this a question about Org mode? All the best, Tom -- Thomas S. Dye http://www.tsdye.com