mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
use-package focus
This commit is contained in:
parent
1d0f72aa12
commit
3481584b4e
27
init.org
27
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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user