|
|
@ -613,6 +613,36 @@ Ivy-Hydra adds stuff in minibuffer when you press C-o |
|
|
|
:ensure t) |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
|
* Helm |
|
|
|
I placed it after ivy to override any configuration made by the former. |
|
|
|
This is just a try to see how it works differently. |
|
|
|
2018-04-29: invalid-function "helm-with-buffer" occurred whenever I tried to start a helm function, so.. back to ivy! |
|
|
|
|
|
|
|
+BEGIN_SRC emacs-lisp |
|
|
|
(use-package helm |
|
|
|
:ensure t |
|
|
|
:init |
|
|
|
(helm-mode 1) |
|
|
|
; :bind |
|
|
|
; (("M-x" . helm-M-x) |
|
|
|
; ("C-x C-f" . helm-find-files) |
|
|
|
; ("C-x C-r" . helm-recentf) |
|
|
|
; ("C-x b" . helm-buffers-list)) |
|
|
|
; :config |
|
|
|
; (setq helm-buffers-fuzzy-matching t) |
|
|
|
) |
|
|
|
|
|
|
|
;(use-package helm-descbinds |
|
|
|
; :ensure t |
|
|
|
; :bind |
|
|
|
; ("C-h b" . helm-descbinds)) |
|
|
|
|
|
|
|
;(use-package helm-projectile |
|
|
|
; :ensure t |
|
|
|
; :config |
|
|
|
; (helm-projectile-on)) |
|
|
|
#+END_SRC |
|
|
|
* Latex |
|
|
|
Requirements for Linux: |
|
|
|
- Latex |
|
|
@ -728,7 +758,9 @@ deactivate |
|
|
|
(concat |
|
|
|
"/opt/beancount/bin:" |
|
|
|
(getenv "PATH")) |
|
|
|
) |
|
|
|
) |
|
|
|
:config |
|
|
|
(setq beancount-filename-main "/home/marc/Archiv/Finanzen/transactions.beancount") |
|
|
|
) |
|
|
|
) |
|
|
|
#+end_src |
|
|
@ -1296,7 +1328,7 @@ _v_ verify setup _f_ check _s_ select |
|
|
|
:init |
|
|
|
(setq evil-want-integration nil) ;; required by evil-collection |
|
|
|
:config |
|
|
|
(evil-mode 0)) ;; for now deactivate per default |
|
|
|
(evil-mode 1)) ;; for now deactivate per default |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
Evil-collection is a bundle of configs for different modes |
|
|
@ -1335,4 +1367,47 @@ _v_ verify setup _f_ check _s_ select |
|
|
|
) |
|
|
|
#+end_src |
|
|
|
|
|
|
|
|
|
|
|
* Custom key mappings |
|
|
|
** Escape stuff |
|
|
|
Standard is C-g to exit. But with the coming introduction of evil, ESC should be the default key for escaping stuff. |
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(defun minibuffer-keyboard-quit () |
|
|
|
"Abort recursive edit. |
|
|
|
In Delete Selection mode, if the mark is active, just deactivate it; |
|
|
|
then it takes a second \\[keyboard-quit] to abort the minibuffer." |
|
|
|
(interactive) |
|
|
|
(if (and delete-selection-mode transient-mark-mode mark-active) |
|
|
|
(setq deactivate-mark t) |
|
|
|
(when (get-buffer "*Completions*") (delete-windows-on "*Completions*")) |
|
|
|
(abort-recursive-edit))) |
|
|
|
(with-eval-after-load 'evil-maps |
|
|
|
(define-key evil-normal-state-map [escape] 'keyboard-quit) |
|
|
|
(define-key evil-visual-state-map [escape] 'keyboard-quit)) |
|
|
|
;(with-eval-after-load 'swiper-map |
|
|
|
; (define-key ivy-minibuffer-map [escape] 'keyboard-quit) |
|
|
|
; (define-key swiper-map [escape] 'keyboard-quit) |
|
|
|
;) |
|
|
|
(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit) |
|
|
|
(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit) |
|
|
|
(define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit) |
|
|
|
(define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit) |
|
|
|
(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit) |
|
|
|
(global-set-key [escape] 'evil-exit-emacs-state) |
|
|
|
#+END_SRC |
|
|
|
* Quality of Life |
|
|
|
** Default Window Size |
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(if (display-graphic-p) |
|
|
|
(progn |
|
|
|
(setq initial-frame-alist |
|
|
|
'( |
|
|
|
(width . 165) |
|
|
|
(height . 70))) |
|
|
|
(setq default-frame-alist |
|
|
|
'( |
|
|
|
(width . 165) |
|
|
|
(height . 70)))) |
|
|
|
) |
|
|
|
#+END_SRC |