emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Add orgstruct-appendix to .emacs to default for .R-files
@ 2014-06-17  7:26 Henning
  2014-07-27 22:59 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Henning @ 2014-06-17  7:26 UTC (permalink / raw)
  To: emacs-orgmode

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

I currently use orgstruct-mode tu structure scripts for statistical
analysis in R. So I copy + paste some orgstruct-code into every R-file,
where I would like to enjoy folding.

||/Is there any way to put the following lines of code into my .emacs-file, so the orgstruct-properties becaume default for all my .R//-Files?/
|
  ### * End of file

  ### Local Variables:
  ### eval: (orgstruct-mode 1)
  ### orgstruct-heading-prefix-regexp: "### "
  ### End:

|(See https://stackoverflow.com/questions/14941429/structuring-a-statistical-analysis-with-r-using-emacs-ess for further references)

||


[-- Attachment #2: Type: text/html, Size: 1297 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Add orgstruct-appendix to .emacs to default for .R-files
  2014-06-17  7:26 Add orgstruct-appendix to .emacs to default for .R-files Henning
@ 2014-07-27 22:59 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-07-27 22:59 UTC (permalink / raw)
  To: Henning; +Cc: emacs-orgmode

Hi Henning,

Henning <henning.bumann@campus.lmu.de> writes:

> Is there any way to put the following lines of code into my
> .emacs-file, so the orgstruct-properties becaume default for all my
> .R-Files?

I guess you may want to use something like yasnippets:

  http://www.emacswiki.org/emacs/Yasnippet

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-28 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17  7:26 Add orgstruct-appendix to .emacs to default for .R-files Henning
2014-07-27 22:59 ` Bastien

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).