Browse Source

babel R added, an example for plot added

master
marc 6 years ago
parent
commit
2b00d48618
1 changed files with 22 additions and 0 deletions
  1. 22
      config.org

22
config.org

@ -1,6 +1,17 @@
#+TITLE: Emacs Configuration #+TITLE: Emacs Configuration
#+AUTHOR: Marc Pohling #+AUTHOR: Marc Pohling
Needs debian package ess
#+begin_src R :session *R* :results output graphics :file second.png :exports both
library(ggplot2)
x <- (0:100)/100
y <- x^2
qplot(x,y,geom="line",xlab=expression(x),ylab=expression(f(x)==x^2),
main="Quadratfunktion")
#+end_src
#+RESULTS:
* Personal Information * Personal Information
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -240,6 +251,7 @@ The default value is -77, which is weird for smaller width windows. I'd rather h
(java . t) (java . t)
(ruby . t) (ruby . t)
(lisp . t) (lisp . t)
(R . t)
(scheme . t) (scheme . t)
(shell . t) (shell . t)
(sqlite . t) (sqlite . t)
@ -250,11 +262,21 @@ The default value is -77, which is weird for smaller width windows. I'd rather h
(not (or (string= lang "C") (not (or (string= lang "C")
(string= lang "java") (string= lang "java")
(string= lang "python") (string= lang "python")
(string= lang "R")
(string= lang "emacs-lisp") (string= lang "emacs-lisp")
(string= lang "sqlite")))) (string= lang "sqlite"))))
(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate) (setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate)
#+end_src #+end_src
I want plots!
#+begin_src emacs-lisp
(use-package ess
:ensure t
)
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)
(add-hook 'org-mode-hook 'org-display-inline-images)
#+end_src
** Org babel/source blocks ** Org babel/source blocks
I like to have source blocks properly syntax highlighted and with the editing popup window staying within the same window so all the windows don't jump around. Also, having the top and bottom trailing lines in the block is a waste of space, so we can remove them I like to have source blocks properly syntax highlighted and with the editing popup window staying within the same window so all the windows don't jump around. Also, having the top and bottom trailing lines in the block is a waste of space, so we can remove them

Loading…
Cancel
Save