Browse Source

merged work and home config

master
Marc Pohling 6 years ago
parent
commit
b191d47a35
1 changed files with 16 additions and 24 deletions
  1. 40
      config.org

40
config.org

@ -1,29 +1,6 @@
#+TITLE: Emacs Configuration
#+AUTHOR: Marc Pohling
Needs debian package ess
#+begin_src R :results output graphics :file test.png
library(ggplot2)
df <- data.frame(dose=c("D0.5", "D1", "D2"),
len=c(4.2, 10, 29.5))
# Basic line plot with points
ggplot(data=df, aes(x=dose, y=len, group=1)) +
geom_line()+
geom_point()
# Change the line type
ggplot(data=df, aes(x=dose, y=len, group=1)) +
geom_line(linetype = "dashed")+
geom_point()
# Change the color
ggplot(data=df, aes(x=dose, y=len, group=1)) +
geom_line(color="red")+
geom_point()
#+end_src
#+RESULTS:
[[file:test.png]]
* Personal Information
#+begin_src emacs-lisp
@ -496,7 +473,8 @@ Common backends are:
#+begin_src emacs-lisp
(defun company/python-mode-hook()
(set (make-local-variable 'company-backends)
'((company-jedi company-dabbrev) company-capf company-files))
'((company-jedi company-dabbrev company-yasnippet) company-capf company-files))
;; '((company-jedi company-dabbrev) company-capf company-files))
(company-mode t)
)
#+end_src
@ -563,6 +541,20 @@ Maybe add [[https://github.com/hlissner/emacs-company-dict][company-dict]]? It's
projectile-mode-line '(:eval (projectile-project-name)))
)
#+end_src
** Yasnippet
Snippets!
TODO: yas-minor-mode? what's that?
#+begin_src emacs-lisp
(use-package yasnippet
:ensure t
:init
(yas-global-mode)
:mode ("\\.yasnippet" . snippet-mode)
:config
(setq yas-snippet-dirs (concat user-emacs-directory "snippets"))
)
#+end_src
** Lisp
#+begin_src emacs-lisp

Loading…
Cancel
Save