|
|
|
@ -416,8 +416,6 @@ closed or not, to not confuse elements with Svelte components."
|
|
|
|
|
;; `ido-list-directory' if I ever really want to use dired. Also there is {C-c
|
|
|
|
|
;; C-x C-d} to open `dired-sidebar'.
|
|
|
|
|
(global-unset-key (kbd "C-x d"))
|
|
|
|
|
(global-set-key (kbd "C-x d d") 'deft)
|
|
|
|
|
(global-set-key (kbd "C-x d f") 'deft-new-file-named)
|
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-c e") 'emojify-insert-emoji)
|
|
|
|
|
|
|
|
|
@ -443,25 +441,18 @@ closed or not, to not confuse elements with Svelte components."
|
|
|
|
|
|
|
|
|
|
;; END KEYBINDS
|
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;
|
|
|
|
|
;;;;; DEFT ;;;;;
|
|
|
|
|
;;;;;;;;;;;;;;;;
|
|
|
|
|
(require 'deft)
|
|
|
|
|
|
|
|
|
|
(defun hugot-deft-window-width (old-function)
|
|
|
|
|
(- (funcall old-function) 1))
|
|
|
|
|
|
|
|
|
|
(advice-add 'deft-current-window-width :around #'hugot-deft-window-width)
|
|
|
|
|
|
|
|
|
|
(eval-after-load "deft"
|
|
|
|
|
(progn
|
|
|
|
|
(setq deft-directory "~/projects/deft")
|
|
|
|
|
(custom-set-variables '(deft-extensions '("kotl" "txt" "text" "md" "markdown" "org")))
|
|
|
|
|
(setq-default deft-default-extension "kotl")
|
|
|
|
|
(setq deft-use-filename-as-title t)
|
|
|
|
|
(setq deft-strip-summary-regexp "^\\(\n\\|;;\\|\"\\|[[:digit:]]\\|[[:blank:]]*\\[\\|[a-z]\\|\\|[[:blank:]]+(creator\\|.*\\]$\\).*\\|\\|[\n \t]+")))
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;;;;; NOTES LIST ;;;;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
(when (and (require 'emcn-notes-list nil t)
|
|
|
|
|
(require 'notes-list nil t))
|
|
|
|
|
(setq notes-list-collect-notes-function #'emcn-notes-list-collect-notes)
|
|
|
|
|
(setq notes-list-open-function #'emcn-notes-list-open)
|
|
|
|
|
(setq notes-list-highlight-face 'font-lock-string-face)
|
|
|
|
|
(setq notes-list-stripe-face 'fringe)
|
|
|
|
|
(setq notes-list-display-tags nil))
|
|
|
|
|
|
|
|
|
|
;; END DEFT
|
|
|
|
|
;; END NOTES LIST
|
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;;;;; EWW MODE ;;;;;
|
|
|
|
@ -487,11 +478,14 @@ OLD-FUNCTION must be the function that is being adviced."
|
|
|
|
|
;;;;; EMENT ;;;;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
|
|
(defun hugot-ement-hook ()
|
|
|
|
|
(emojify-mode))
|
|
|
|
|
(when (require 'ement nil t)
|
|
|
|
|
(setq ement-save-sessions t)
|
|
|
|
|
|
|
|
|
|
(defun hugot-ement-hook ()
|
|
|
|
|
(emojify-mode))
|
|
|
|
|
|
|
|
|
|
(add-hook 'ement-room-list-mode-hook #'hugot-ement-hook)
|
|
|
|
|
(add-hook 'ement-room-mode-hook #'hugot-ement-hook)
|
|
|
|
|
(add-hook 'ement-room-list-mode-hook #'hugot-ement-hook)
|
|
|
|
|
(add-hook 'ement-room-mode-hook #'hugot-ement-hook))
|
|
|
|
|
|
|
|
|
|
;; END EMENT
|
|
|
|
|
|
|
|
|
|