From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: autorun M-x linum-mode when file is opened Date: Sat, 09 Aug 2014 18:56:33 +0100 Message-ID: <87bnrty2b2.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]:36148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGAsm-00070N-G4 for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 13:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGAsh-0001PV-Iv for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 13:56:44 -0400 Received: from avasout01.plus.net ([84.93.230.227]:56001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGAsh-0001PI-7X for emacs-orgmode@gnu.org; Sat, 09 Aug 2014 13:56:39 -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 iQIcBAEBCgAGBQJT5mDRAAoJEDaBgBkK+INbxSwP/0LjXfUP7ayByY93TbMnqseV ivs5IdjtDU3iTH3/2JQuNmoYsCg+kilUgieoU6XKqkOPe1oQw7Q35coW4iNvj1bQ tGeC4ujCQenpZo6uqh/mUx+t9AAZvjjK5I/suVx1o5psByWW5U0/0CKwXJ7g8ZZ0 j4OTcGgi7yeQusLFGGYNvFcDRaT0diaFBZFJuu9bb7cXy3H1bD52aXb1PNsP9dAH yK6jc3Ij71ni9Leo2tfbo8LWu7+jvLkaB3EWR9fahYpV/iPKkKoRP49kgXNZW2po i+ozmDN0RKClro3w+FRGA5s3Q2VAM0wGwSYHePzGm2CZj1gQ8MQDuO9H1EzD1fOD R/iwpPt6aOqOOyB+PNzWL3dTlytWhxm9xfCM7FN8ckAlb0c7CXW9ifkUQa+M0oW+ EYsqqSXBViUVWpneea1X8andmg7oeoZhZCTKa57zg8iJQJI4C5as/HTHdC0Ia7AC g6AY+OJ9x1GpbanItu37PMHvRrEayaV4AfXM1SgzCUiTUpjE3T61+aWoWaQPTGyS N5wTE4veIXVhMCtW1sweCnNvq0lUK3e0DIYgWtIeAUVq0w+4uTgLPo2A3ocAcysO 8KvUweU1N1aXcLt6Ls9h3eWRM01G5FGqEIe+KNN/eKwHvJ1OM5Gr0CYCgZ10TvAW PnRSnEz414pfpI8ugYq3 =ISLk -----END PGP SIGNATURE----- --=-=-=--