config/doom: integrate with dragon & configure eww
This commit is contained in:
parent
e11e7de303
commit
99f50648cc
|
@ -24,31 +24,40 @@
|
||||||
;; There are two ways to load a theme. Both assume the theme is installed and
|
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||||
;; `load-theme' function. This is the default:
|
;; `load-theme' function. This is the default:
|
||||||
(setq doom-theme 'doom-one
|
(setq doom-theme 'doom-one
|
||||||
doom-font (font-spec :family "Fira Code" :size 30 :weight 'semi-light)
|
doom-font (font-spec :family "Fira Code" :size 30 :weight 'semi-light)
|
||||||
doom-variable-pitch-font (font-spec :family "sans" :size 28))
|
doom-variable-pitch-font (font-spec :family "sans" :size 28))
|
||||||
|
|
||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'relative)
|
||||||
|
|
||||||
(map! :leader "u" 'evil-prev-buffer
|
(defun dragon ()
|
||||||
:leader "i" 'evil-next-buffer
|
; Share file in current buffer via dragon
|
||||||
:leader "bq" 'doom/save-and-kill-buffer
|
(interactive)
|
||||||
:leader "mj" 'org-insert-heading
|
(shell-command (concat "dragon-drag-and-drop -x " (buffer-file-name)))
|
||||||
:leader "aa" 'annotate-annotate
|
)
|
||||||
:leader "as" 'annotate-mode
|
|
||||||
)
|
(map! :leader "u" 'evil-prev-buffer
|
||||||
|
:leader "i" 'evil-next-buffer
|
||||||
|
:leader "bq" 'doom/save-and-kill-buffer
|
||||||
|
:leader "mj" 'org-insert-heading
|
||||||
|
:leader "aa" 'annotate-annotate
|
||||||
|
:leader "as" 'annotate-mode
|
||||||
|
:leader "d" 'dragon
|
||||||
|
)
|
||||||
|
|
||||||
;; Undo
|
;; Undo
|
||||||
(setq evil-want-fine-undo t)
|
(setq evil-want-fine-undo t)
|
||||||
(setq amalgamating-undo-limit 5)
|
(setq amalgamating-undo-limit 5)
|
||||||
|
|
||||||
;; Global config
|
;; Global config
|
||||||
(setq confirm-kill-emacs nil)
|
(setq confirm-kill-emacs nil)
|
||||||
|
|
||||||
(setq initial-major-mode 'org-mode)
|
(setq initial-major-mode 'org-mode)
|
||||||
|
|
||||||
(whitespace-mode 0)
|
(whitespace-mode 0)
|
||||||
|
|
||||||
|
(setq eww-search-prefix "https://safe.duckduckgo.com/html/?q=")
|
||||||
|
|
||||||
;; Backups & auto-saves
|
;; Backups & auto-saves
|
||||||
(setq auto-save-default t
|
(setq auto-save-default t
|
||||||
auto-save-interval 40)
|
auto-save-interval 40)
|
||||||
|
|
Loading…
Reference in New Issue