[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setting
From: |
Thorsten Jolitz |
Subject: |
Re: setting |
Date: |
Thu, 13 Jun 2013 15:28:18 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
Rainer M Krug <Rainer@krugs.de> writes:
> I have the following function definition:
>
> ,----
> | (defun org-babel-mark-file-as-tangled ()
> | (when (string-match "[.]R" (buffer-file-name))
> | (add-file-local-variable 'org-babel-tangled-file t)
> | (add-file-local-variable 'buffer-read-only t)
> | (basic-save-buffer)))
> `----
>
> Now I would like to set the minor mode (auto-revert-mode) as well.
> According to the manual, one should use
>
> ,----
> | eval: (auto-revert-mode)
> `----
>
> But how can I include this in my function above?
,---------------------
| (auto-revert-mode 1)
`---------------------
? (untested)
--
cheers,
Thorsten
- setting, Rainer M Krug, 2013/06/13
- Re: setting,
Thorsten Jolitz <=