private/hlissner: refactor + update
This commit is contained in:
parent
cd7bd7628f
commit
13561c3ddf
2 changed files with 26 additions and 18 deletions
|
@ -1,12 +1,13 @@
|
||||||
;;; private/hlissner/config.el -*- lexical-binding: t; -*-
|
;;; private/hlissner/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(when (featurep! :feature evil)
|
|
||||||
(load! +bindings) ; my key bindings
|
|
||||||
(load! +commands)) ; my custom ex commands
|
|
||||||
|
|
||||||
(defvar +hlissner-dir (file-name-directory load-file-name))
|
(defvar +hlissner-dir (file-name-directory load-file-name))
|
||||||
(defvar +hlissner-snippets-dir (expand-file-name "snippets/" +hlissner-dir))
|
(defvar +hlissner-snippets-dir (expand-file-name "snippets/" +hlissner-dir))
|
||||||
|
|
||||||
|
;;
|
||||||
|
(when (featurep! :feature evil)
|
||||||
|
(load! +bindings) ; my key bindings
|
||||||
|
(load! +commands)) ; my custom ex commands
|
||||||
|
|
||||||
(setq epa-file-encrypt-to user-mail-address
|
(setq epa-file-encrypt-to user-mail-address
|
||||||
auth-sources (list (expand-file-name ".authinfo.gpg" +hlissner-dir))
|
auth-sources (list (expand-file-name ".authinfo.gpg" +hlissner-dir))
|
||||||
+doom-modeline-buffer-file-name-style 'relative-from-project)
|
+doom-modeline-buffer-file-name-style 'relative-from-project)
|
||||||
|
@ -17,7 +18,6 @@
|
||||||
(apply orig-fn args)))
|
(apply orig-fn args)))
|
||||||
(advice-add #'tramp-read-passwd :around #'+hlissner*no-authinfo-for-tramp)
|
(advice-add #'tramp-read-passwd :around #'+hlissner*no-authinfo-for-tramp)
|
||||||
|
|
||||||
;;
|
|
||||||
(after! smartparens
|
(after! smartparens
|
||||||
;; Auto-close more conservatively
|
;; Auto-close more conservatively
|
||||||
(let ((unless-list '(sp-point-before-word-p
|
(let ((unless-list '(sp-point-before-word-p
|
||||||
|
@ -32,16 +32,7 @@
|
||||||
(sp-pair "[" nil :post-handlers '(("| " " "))
|
(sp-pair "[" nil :post-handlers '(("| " " "))
|
||||||
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
||||||
|
|
||||||
|
;; feature/evil
|
||||||
;;
|
|
||||||
(after! doom-themes
|
|
||||||
;; Since Fira Mono doesn't have an italicized variant, highlight it instead
|
|
||||||
(set-face-attribute 'italic nil
|
|
||||||
:weight 'ultra-light
|
|
||||||
:foreground "#ffffff"
|
|
||||||
:background (doom-color 'current-line)))
|
|
||||||
|
|
||||||
|
|
||||||
(after! evil-mc
|
(after! evil-mc
|
||||||
;; if I'm in insert mode, chances are I want cursors to resume
|
;; if I'm in insert mode, chances are I want cursors to resume
|
||||||
(add-hook! 'evil-mc-before-cursors-created
|
(add-hook! 'evil-mc-before-cursors-created
|
||||||
|
@ -49,14 +40,12 @@
|
||||||
(add-hook! 'evil-mc-after-cursors-deleted
|
(add-hook! 'evil-mc-after-cursors-deleted
|
||||||
(remove-hook 'evil-insert-state-entry-hook #'evil-mc-resume-cursors t)))
|
(remove-hook 'evil-insert-state-entry-hook #'evil-mc-resume-cursors t)))
|
||||||
|
|
||||||
|
|
||||||
;; Don't use default snippets, use mine.
|
;; Don't use default snippets, use mine.
|
||||||
(after! yasnippet
|
(after! yasnippet
|
||||||
(setq yas-snippet-dirs
|
(setq yas-snippet-dirs
|
||||||
(append (list '+hlissner-snippets-dir)
|
(append (list '+hlissner-snippets-dir)
|
||||||
(delq 'yas-installed-snippets-dir yas-snippet-dirs))))
|
(delq 'yas-installed-snippets-dir yas-snippet-dirs))))
|
||||||
|
|
||||||
|
|
||||||
;; app/irc
|
;; app/irc
|
||||||
(after! circe
|
(after! circe
|
||||||
(setq +irc-notifications-watch-strings '("v0" "vnought" "hlissner"))
|
(setq +irc-notifications-watch-strings '("v0" "vnought" "hlissner"))
|
||||||
|
@ -69,7 +58,6 @@
|
||||||
:sasl-password ,(+pass-get-secret "irc/snoonet.org")
|
:sasl-password ,(+pass-get-secret "irc/snoonet.org")
|
||||||
:channels (:after-auth "#ynought"))))
|
:channels (:after-auth "#ynought"))))
|
||||||
|
|
||||||
|
|
||||||
;; app/email
|
;; app/email
|
||||||
(after! mu4e
|
(after! mu4e
|
||||||
(setq smtpmail-stream-type 'starttls
|
(setq smtpmail-stream-type 'starttls
|
||||||
|
@ -95,3 +83,13 @@
|
||||||
(user-mail-address . "henrik@lissner.net")
|
(user-mail-address . "henrik@lissner.net")
|
||||||
(mu4e-compose-signature . "---\nHenrik Lissner"))
|
(mu4e-compose-signature . "---\nHenrik Lissner"))
|
||||||
t))
|
t))
|
||||||
|
|
||||||
|
;; The standard unicode characters are usually misaligned depending on the font.
|
||||||
|
;; This bugs me. Personally, markdown #-marks for headlines are more elegant, so
|
||||||
|
;; we use those.
|
||||||
|
(after! org-bullets
|
||||||
|
(setq org-bullets-bullet-list '("#")))
|
||||||
|
|
||||||
|
;; Hide header lines in helm. I don't like them
|
||||||
|
(after! helm
|
||||||
|
(set-face-attribute 'helm-source-header nil :height 0.1))
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
doom-neotree-chevron-size 0.6
|
doom-neotree-chevron-size 0.6
|
||||||
org-ellipsis " ")
|
org-ellipsis " ")
|
||||||
|
|
||||||
|
(custom-set-faces
|
||||||
|
'(doom-modeline-bar ((t (:background nil)))))
|
||||||
|
|
||||||
(add-hook! doom-big-font-mode
|
(add-hook! doom-big-font-mode
|
||||||
(setq +doom-modeline-height (if doom-big-font-mode 37 23))))
|
(setq +doom-modeline-height (if doom-big-font-mode 37 23))))
|
||||||
|
|
||||||
|
@ -39,5 +42,12 @@
|
||||||
doom-variable-pitch-font (font-spec :family "Fira Sans")
|
doom-variable-pitch-font (font-spec :family "Fira Sans")
|
||||||
doom-unicode-font (font-spec :family "DejaVu Sans Mono"))
|
doom-unicode-font (font-spec :family "DejaVu Sans Mono"))
|
||||||
|
|
||||||
|
;; Since Fira Mono doesn't have an italicized variant, highlight it instead
|
||||||
|
(add-hook! doom-post-init
|
||||||
|
(set-face-attribute 'italic nil
|
||||||
|
:weight 'ultra-light
|
||||||
|
:foreground "#ffffff"
|
||||||
|
:background (doom-color 'current-line)))
|
||||||
|
|
||||||
(add-hook! doom-big-font-mode
|
(add-hook! doom-big-font-mode
|
||||||
(setq +doom-modeline-height (if doom-big-font-mode 37 29)))))
|
(setq +doom-modeline-height (if doom-big-font-mode 37 29)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue