diff --git a/init.org b/init.org index 1993cdc..6993d44 100644 --- a/init.org +++ b/init.org @@ -207,8 +207,7 @@ (let* ((package--builtins nil) (packages - '(focus ; Dim color of text in surrounding sections - go-mode ; Major mode for the Go programming language + '(go-mode ; Major mode for the Go programming language haskell-mode ; A Haskell editing mode lua-mode ; a major-mode for editing Lua scripts markdown-mode ; Emacs Major mode for Markdown-formatted files @@ -555,6 +554,24 @@ #+end_src +** Focusing with focus + + [[https://github.com/larstvei/Focus][Focus]] is my own package. It looks pretty nice, especially in combination + with Olivetti! + + #+begin_src emacs-lisp + + ;; Dim color of text in surrounding sections + (use-package focus + :defer t + :bind ("C-c q" . + (lambda () + (interactive) + (focus-mode 1) + (focus-read-only-mode 1)))) + + #+end_src + * Version control Magit is the best. @@ -1739,12 +1756,6 @@ (define-key custom-bindings-map (kbd key) (lambda () (interactive) (switch-vterm n))))) - (define-key custom-bindings-map (kbd "C-c C-q") - '(lambda () - (interactive) - (focus-mode 1) - (focus-read-only-mode 1))) - (with-eval-after-load 'org (define-key org-mode-map (kbd "C-'") 'org-sync-pdf))