@ -232,7 +232,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
Click [[https://github.com/justbur/emacs-which-key][here]] for source and more info.
Info in Emacs: M-x customize-group which-key
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package which-key
:ensure t
:diminish which-key-mode
@ -253,7 +253,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
** Hydra
Hydra allows grouping of commands
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package hydra
:ensure t
:bind
@ -333,12 +333,12 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
** List buffers
Ibuffer is the improved version of list-buffers.
Make ibuffer the default buffer lister. [[http://ergoemacs.org/emacs/emacs_buffer_management.html][Source]]
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(defalias 'list-buffers 'ibuffer)
#+end_src
Also auto refresh dired, but be quiet about it. [[http://whattheemacsd.com/sane-defaults.el-01.html][Source]]
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(add-hook 'dired-mode-hook 'auto-revert-mode)
(setq global-auto-revert-non-file-buffers t)
(setq auto-revert-verbose nil)
@ -346,13 +346,13 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
** ivy / counsel / swiper
Flx is required for fuzzy-matching
Is it really necessary?
begin_src emacs-lisp
BEGIN_SRC emacs-lisp
(use-package flx)
end_src
Ivy displays a window with suggestions for hotkeys and M-x
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package ivy
:ensure t
:diminish
@ -372,7 +372,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
The find-file replacement is nicer to navigate
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package counsel
:ensure t
:bind* ;; load counsel when pressed
@ -389,7 +389,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
Swiper ivy-enhances isearch
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package swiper
:ensure t
:bind
@ -448,7 +448,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
** Ido (currently inactive)
better completion
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
;(use-package ido
; :init
; (setq ido-enable-flex-matching t)
@ -478,7 +478,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
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
@ -519,7 +519,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
Treemacs-projectile is useful for uhh.. TODO explain!
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package treemacs-projectile
:ensure t
:defer t
@ -542,7 +542,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
*** Ace-Window
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package ace-window
:ensure t
:init
@ -556,7 +556,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
CURRENTLY NOT WORKING, defaults are blocked.
Also not sure if necessary when using ace-window.
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package windmove
:ensure t
:config
@ -570,7 +570,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
Added a hook to complete org functions, company-capf is necessary for this
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package org
:ensure org-plus-contrib
:init
@ -580,7 +580,7 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
To avoid problems executing source blocks out of the box. [[https://emacs.stackexchange.com/a/28604][Others have the same problem, too]]. The solution is to remove the .elc files form the package directory:
#+begin_src shell
#+BEGIN_SRC shell
var ORG_DIR=(let* ((org-v (cadr (split-string (org-version nil t) "@"))) (len (length org-v))) (substring org-v 1 (- len 2)))
rm ${ORG_DIR}/*.elc
#+end_src
@ -588,14 +588,14 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
*** Org key bindings
Set up some global key bindings that integrate with Org mode features
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(bind-key "C-c l" 'org-store-link)
(bind-key "C-c c" 'org-capture)
(bind-key "C-c a" 'org-agenda)
#+end_src
Org overwrites RET and C-j, so I need to disable the rebinds
@ -697,7 +697,7 @@ For a more detailed example [[https://github.com/sachac/.emacs.d/blob/83d21e4733
Customize the org agenda
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(defun my-org-skip-subtree-if-priority (priority)
"Skip an agenda subtree if it has a priority of PRIORITY.
@ -729,13 +729,13 @@ For a more detailed example [[https://github.com/sachac/.emacs.d/blob/83d21e4733
The default value is -77, which is weird for smaller width windows. I'd rather have the tags align horizontally with the header.
45 is a good column number to do that.
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(setq org-tags-column 45)
#+end_src
** Org babel languages
This code block is linux specific. Loading languages which aren't available seems to be a problem
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(cond ((eq system-type 'gnu/linux)
(org-babel-do-load-languages
'org-babel-load-languages
@ -759,7 +759,7 @@ For a more detailed example [[https://github.com/sachac/.emacs.d/blob/83d21e4733
)
#+end_src
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(defun my-org-confirm-babel-evaluate (lang body)
"Do not confirm evaluation for these languages."
(not (or (string= lang "beancount")
@ -774,7 +774,7 @@ For a more detailed example [[https://github.com/sachac/.emacs.d/blob/83d21e4733
#+end_src
I want plots!
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(use-package ess
:ensure t
)
@ -787,7 +787,7 @@ For a more detailed example [[https://github.com/sachac/.emacs.d/blob/83d21e4733
I noticed that fontification doesn't work with markdown mode when the block is indented after editing it in the org src buffer - the leading #s for headers don't get fontified properly because they apppear as Org comments. Setting ~org-src-preserve-identation~ makes things consistent as it doesn't pad source blocks with leading spaces
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(setq org-src-fontify-natively t
org-src-window-setup 'current-window
org-src-strip-leading-and-trailing-blank-lines t
@ -829,7 +829,7 @@ sudo apt install pandoc
- hydra for notmuch?
- maybe org-notmuch?
- some way to refresh the notmuch db before I run notmuch?
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(unless (string-equal user-login-name "POH")
(use-package notmuch
:ensure t
@ -842,7 +842,7 @@ sudo apt install pandoc
Since there is no debian package, it is an option to install it via pip.
I picked /opt for the installation path
#+begin_src shell
#+BEGIN_SRC shell
sudo su
cd /opt
python3 -m venv beancount
@ -856,7 +856,7 @@ sudo apt install pandoc
Activate the beancount mode. ATTENTION: This mode is made by myself.
#+begin_src emacs-lisp
#+BEGIN_SRC emacs-lisp
(unless (string-equal user-login-name "POH")
(load "/home/marc/.emacs.d/user-local/elisp/beancount-mode.el") ; somehow load-path in use-package doesn't work
(use-package beancount
@ -877,7 +877,7 @@ sudo apt install pandoc
Installing fava for reports is strongly recommended.
#+begin_src shell
#+BEGIN_SRC shell
sudo su
cd /opt
python3 -m venv vava
@ -888,7 +888,7 @@ sudo apt install pandoc
#+end_src
Start fava with
#+begin_src shell
#+BEGIN_SRC shell
fava my_file.beancount
#+end_src
@ -902,7 +902,7 @@ List of plugins and settings which are shared between the language plugins