From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: How can I autorun M-x linum-mode when file is opened? Date: Sun, 10 Aug 2014 17:46:04 +0100 Message-ID: <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]:33081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGWGA-0008G0-Ih for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 12:46:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGWG4-0001wa-Jv for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 12:46:18 -0400 Received: from avasout06.plus.net ([212.159.14.18]:59618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGWG4-0001vo-Ed for emacs-orgmode@gnu.org; Sun, 10 Aug 2014 12:46:12 -0400 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: org-mode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. Thanks 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 iQIcBAEBCgAGBQJT56HNAAoJEDaBgBkK+INb20kQAMagje64x4Rh/dAfBvzCAyUZ nRfd3rHe+7QRM4LHwFEQwdgQXYoZuzHdjpyywB3UE8sesEhtJUtAB5FJKjV3BOs5 8RcY2qXRYSGBZMBb6YkobMcWCwPFUxV3LjtYF/MbrueWFLuxCYL+UzIU227Cqcuc F0zTa6O/550BmxkWaAyG33QyJKJjShRs9ZbUMjspUv/1LNoM+q591U9W1lmMHG1F XiakSNlMDMbW7LQ6C3/worDzjoHDdo6YfvSw3JTmbp5hxcMu07XZxkPwbekSDMtm BK+qA9PkXoWizNEnNuIBpaftOa2hwMy1M/bq7Xb3Hlnl8OcXZqaiU0sAe0kVKSQh XqueDlffjslbclAqgrzALZjYnJKwDRD+8+bVDRuycQj/xt8op0D+R/TsdZ5dH7Xm eddBlYuwMHToq7U/jwrhOhbslnzT1xiCGfXHJYAMY6L2CLcqTbE25cuKMlmMVC+W mQjwuDRIjtur9jaAYuRSeQaIYFhhu7kUowRBawUyfJnKr/9C+URKh17KfiIlpoWn Vza0pPY1BZy3s15i5WcLQ0oH2p+Pg3qWlZya3aDWAq/92JuerZohYiK961bvRx8L yN4XHsRFS5hBtBvi6ZPY7Twx4pum+bNU1xJi56x63YwKkl6lCHcnlbPfo4hxk4XL Y9w3nijti0dPyZ4w26o+ =w63y -----END PGP SIGNATURE----- --=-=-=--