emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* autorun M-x linum-mode when file is opened
@ 2014-08-09 17:56 Sharon Kimble
  0 siblings, 0 replies; only message in thread
From: Sharon Kimble @ 2014-08-09 17:56 UTC (permalink / raw)
  To: org-mode

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

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.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-09 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09 17:56 autorun M-x linum-mode when file is opened Sharon Kimble

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).