|
@ -1,29 +1,6 @@ |
|
|
#+TITLE: Emacs Configuration |
|
|
#+TITLE: Emacs Configuration |
|
|
#+AUTHOR: Marc Pohling |
|
|
#+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 |
|
|
* Personal Information |
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp |
|
|
#+begin_src emacs-lisp |
|
@ -496,7 +473,8 @@ Common backends are: |
|
|
#+begin_src emacs-lisp |
|
|
#+begin_src emacs-lisp |
|
|
(defun company/python-mode-hook() |
|
|
(defun company/python-mode-hook() |
|
|
(set (make-local-variable 'company-backends) |
|
|
(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) |
|
|
(company-mode t) |
|
|
) |
|
|
) |
|
|
#+end_src |
|
|
#+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))) |
|
|
projectile-mode-line '(:eval (projectile-project-name))) |
|
|
) |
|
|
) |
|
|
#+end_src |
|
|
#+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 |
|
|
** Lisp |
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp |
|
|
#+begin_src emacs-lisp |
|
|