config/doom: integrate with dragon & configure eww

This commit is contained in:
xerus2000 2021-02-25 18:36:51 +01:00
parent e11e7de303
commit 99f50648cc
1 changed files with 23 additions and 14 deletions

View File

@ -30,12 +30,19 @@
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
(defun dragon ()
; Share file in current buffer via dragon
(interactive)
(shell-command (concat "dragon-drag-and-drop -x " (buffer-file-name)))
)
(map! :leader "u" 'evil-prev-buffer (map! :leader "u" 'evil-prev-buffer
:leader "i" 'evil-next-buffer :leader "i" 'evil-next-buffer
:leader "bq" 'doom/save-and-kill-buffer :leader "bq" 'doom/save-and-kill-buffer
:leader "mj" 'org-insert-heading :leader "mj" 'org-insert-heading
:leader "aa" 'annotate-annotate :leader "aa" 'annotate-annotate
:leader "as" 'annotate-mode :leader "as" 'annotate-mode
:leader "d" 'dragon
) )
;; Undo ;; Undo
@ -49,6 +56,8 @@
(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)