From 99f50648cc166de3a234960642353408c5cb306d Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Thu, 25 Feb 2021 18:36:51 +0100 Subject: [PATCH] config/doom: integrate with dragon & configure eww --- .config/doom/config.el | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index 8f6870f..69b215b 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -24,31 +24,40 @@ ;; 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 ;; `load-theme' function. This is the default: -(setq doom-theme 'doom-one - doom-font (font-spec :family "Fira Code" :size 30 :weight 'semi-light) - doom-variable-pitch-font (font-spec :family "sans" :size 28)) +(setq doom-theme 'doom-one + doom-font (font-spec :family "Fira Code" :size 30 :weight 'semi-light) + doom-variable-pitch-font (font-spec :family "sans" :size 28)) (setq display-line-numbers-type 'relative) -(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 - ) +(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 + :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 -(setq evil-want-fine-undo t) -(setq amalgamating-undo-limit 5) +(setq evil-want-fine-undo t) +(setq amalgamating-undo-limit 5) ;; 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) +(setq eww-search-prefix "https://safe.duckduckgo.com/html/?q=") + ;; Backups & auto-saves (setq auto-save-default t auto-save-interval 40)