@ -575,6 +575,8 @@
A file manager comparable to neotree.
[[https://github.com/Alexander-Miller/treemacs ][Github ]]
2018-09-01: Treemacs needs emacs 25.2, debian stretch runs 25.1. Sucks.
It has some requirements, which gets used here anyway:
- ace-window
- hydra
@ -585,7 +587,7 @@
No idea what this executable-find is about.
TODO check it out!
#+ BEGIN_SRC emacs-lisp
BEGIN_SRC emacs-lisp
(use-package treemacs
:ensure t
:defer t
@ -621,18 +623,18 @@
(:map global-map
([f8] . treemacs))
)
#+ END_SRC
END_SRC
Treemacs-Evil is necessary when using evil
#+ BEGIN_SRC emacs-lisp
BEGIN_SRC emacs-lisp
(use-package treemacs-evil
:after treemacs evil
:ensure t)
#+ END_SRC
END_SRC
Treemacs-projectile is useful for uhh.. TODO explain!
#+ BEGIN_SRC emacs-lisp
BEGIN_SRC emacs-lisp
(use-package treemacs-projectile
:ensure t
:after treemacs projectile
@ -640,7 +642,7 @@
:config
(setq treemacs-header-function #'treemacs-projectile-create-header)
)
#+ END_SRC
END_SRC
TODO
Hydrastuff or keybindings for functions:
@ -721,6 +723,41 @@
(save-place-mode))
#+END_SRC
* Company Mode
Complete Anything!
Activate company and make it react nearly instantly
#+BEGIN_SRC emacs-lisp
(use-package company
:ensure t
:config
(setq-default company-minimum-prefix-length 1
company-tooltip-align-annotation t
company-tooltop-flip-when-above t
company-show-numbers t
company-idle-delay 0.1)
; (define-key company-active-map (kbd "RET") nil)
(company-tng-configure-default)
:bind
(:map company-active-map
("TAB" . company-complete-selection)
("<tab >" . company-complete-selection))
)
#+END_SRC
For a nicer suggestion box: company-box ([[https://github.com/sebastiencs/company-box ][Source ]])
It is only available for emacs 26 and higher.
#+BEGIN_SRC emacs-lisp
(when (> emacs-major-version 25)
(use-package company-box
:ensure t
:init
(add-hook 'company-mode-hook 'company-box-mode)))
#+END_SRC
* Org Mode
** Installation
Although org mode ships with Emacs, the latest version can be installed externally. The configuration here follows the [[http://orgmode.org/elpa.html ][Org mode ELPA Installation instructions. ]]
@ -728,8 +765,8 @@
#+BEGIN_SRC emacs-lisp
(use-package org-plus-contrib
:ensure t
(use-package org
:ensure org-plus-contrib
:init
(add-hook 'org-mode-hook 'company/org-mode-hook)
)
@ -959,6 +996,8 @@ END_SRC
:ensure t
:init
(add-hook 'ess-mode-hook 'company/ess-mode-hook)
:config
(setq ess-fancy-comments nil) ; don't indent comments!
)
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)
(add-hook 'org-mode-hook 'org-display-inline-images)
@ -1264,41 +1303,7 @@ _l_: last hunk set start _R_evision
)
#+END_SRC
** Company Mode
Complete Anything!
Activate company and make it react nearly instantly
#+BEGIN_SRC emacs-lisp
(use-package company
:ensure t
:config
(setq-default company-minimum-prefix-length 1
company-tooltip-align-annotation t
company-tooltop-flip-when-above t
company-show-numbers t
company-idle-delay 0.1)
; (define-key company-active-map (kbd "RET") nil)
(company-tng-configure-default)
:bind
(:map company-active-map
("TAB" . company-complete-selection)
("<tab >" . company-complete-selection))
)
#+END_SRC
For a nicer suggestion box: company-box ([[https://github.com/sebastiencs/company-box ][Source ]])
It is only available for emacs 26 and higher.
#+BEGIN_SRC emacs-lisp
(when (> emacs-major-version 25)
(use-package company-box
:ensure t
:init
(add-hook 'company-mode-hook 'company-box-mode)))
#+END_SRC
*** Company backend hooks
** Company backend hooks
Backend configuration for python-mode
@ -1341,6 +1346,7 @@ It is only available for emacs 26 and higher.
(message "company/ess-mode-hook activated")
; (set (make-local-variable 'company-backends)
; '((company-ess-backend company-R-args company-R-objects)))
(ess-indent-with-fancy-comments nil)
(company-mode t))
#+END_SRC
@ -1381,7 +1387,7 @@ Backend configuration for beancount
)
#+END_SRC
*** Misc Company packages
** Misc Company packages
Addon to sort suggestions by usage
@ -1495,22 +1501,28 @@ Add some helpers to handle and understand macros
#+BEGIN_SRC emacs-lisp
(pcase my/whoami
("home"
(use-package ess-site
(use-package ess-r-mode ;ess- site lädt alle Sprachen (Julia, Stata, S, S+, SAS, BUGS/JAGS
:ensure ess
; :load-path "/usr/share/emacs/site-lisp/ess/ "
; :load-path "/home/marc/ .emacs.d/elpa/ess-20180825.900/ "
:defer t
:mode (("\\.R\\'" . r-mode))
:init (require 'ess-site)
:mode (("\\.R$" . R-mode)
("\\.r$" . R-mode))
; :init (require 'ess-site)
:commands
(R-mode)
:config
(use-package ess-R-data-view :ensure t)
(use-package ess-smart-equals :ensure t)
; (use-package ess-smart-equals :ensure t) ; requires julia-mode
(use-package ess-smart-underscore :ensure t)
(use-package ess-view :ensure t)
; (use-package ess-view :ensure t) ; requires julia-mode
(setq ess-use-flymake nil
ess-use-ido nil ;;else ESS will use ido whenever possible
ess-eval-visibly 'nowait
ess-ask-for-ess-directory nil
ess-local-process-name "R"
ess-use-tracebug t
ess-indent-with-fancy-comments nil ; otherwise ess indents comments sometimes
ess-describe-at-point-method 'tooltip))) ; 'tooltip or nil (buffer)
)
#+END_SRC
@ -1664,6 +1676,7 @@ Add some helpers to handle and understand macros
#+BEGIN_SRC emacs-lisp
(use-package highlight-indentation
:ensure t
:init
(add-hook 'python-mode-hook 'highlight-indentation-current-column-mode)
(add-hook 'python-mode-hook 'highlight-indentation-mode)