From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: How can I autorun M-x linum-mode when file is opened? Date: Sun, 10 Aug 2014 18:55:14 +0100 Message-ID: <87tx5kfcvx.fsf@skimble.plus.com> References: <87iom0i983.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGXL6-0007jT-7S for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 13:55:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGXL1-0002Xk-NG for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 13:55:28 -0400 Received: from avasout06.plus.net ([212.159.14.18]:46937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGXL1-0002XQ-H8 for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 13:55:23 -0400 In-Reply-To: (Thomas S. Dye's message of "Sun, 10 Aug 2014 07:11:20 -1000") 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: "Thomas S. Dye" Cc: org-mode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable tsd@tsdye.com (Thomas S. Dye) writes: > 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? > Yes, the journal is written in org-mode, and its one big file of daily observations, and its a big problem for me. Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.92.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJT57ICAAoJEDaBgBkK+INbuHcP/0T/G8kGaQx5ZUCpW8vr7a/e e2+BbzqV1BuN2XRumH+6WrkA2xTOBXGwJmULqPfbNTSF1Ci39ms/B6PzoTO4Wv6x L1aGKemktgv+PhK0hpihZIsG/tbpvvRFH1+7aZvqRyWPXBPPsgUSyhhQb8v5UX+S GJS9Erz1gG8mhCr4PFKIMWUr3K+NhlpLgSWyeCo8aMeqp1qmtiAGKis7/hDP4tk8 1Lsn5+F0/6rxEFhBkx0kylyi6sNxhLlIC/OQRHWC/7BNAKVPq0h6IRDQ86P2Sr7p x3rDhZwSM5D6TfvU5xiuruoy6a3bLrMEVqq1C5GlwfKtQXS1mjoEs35GvMym0DQ+ +4hLp/4HJN2K/B/jYy6bEWOGuKNJV9KroKcszaPWm/3GY6QcvM2yang+AIzLqHyH FOYY2qHYr5sQ4G9hlqETn6kdMy3zK8Dv65bajg58Rf5edZyEaLhA/SAEAH/NFldG XVlb2YvI4rCluOo5A0SEo4v4zAjNJd2hTsP90FKTe4yxlM7k6JRIBXCBeO32JAek h5DJ5PZzwl7BBAxRG/K7VEQ0dCqchAf5nzBWiArEkW4aVAM1yuXmFXiE3+NLbsDR ybr2m6+tJSRnrCrcuEaefbOTJEnDWwYnGY/CsHAJsjjbakIE8D8CcixuA2rPEm95 ezHYYGG/avuFfQsTw26t =gZrl -----END PGP SIGNATURE----- --=-=-=--