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