private/hlissner: refactor + update

This commit is contained in:
Henrik Lissner 2017-12-09 14:49:29 -05:00
parent cd7bd7628f
commit 13561c3ddf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 26 additions and 18 deletions

View file

@ -1,12 +1,13 @@
;;; 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-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
auth-sources (list (expand-file-name ".authinfo.gpg" +hlissner-dir))
+doom-modeline-buffer-file-name-style 'relative-from-project)
@ -17,7 +18,6 @@
(apply orig-fn args)))
(advice-add #'tramp-read-passwd :around #'+hlissner*no-authinfo-for-tramp)
;;
(after! smartparens
;; Auto-close more conservatively
(let ((unless-list '(sp-point-before-word-p
@ -32,16 +32,7 @@
(sp-pair "[" nil :post-handlers '(("| " " "))
:unless '(sp-point-before-word-p sp-point-before-same-p)))
;;
(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)))
;; feature/evil
(after! evil-mc
;; if I'm in insert mode, chances are I want cursors to resume
(add-hook! 'evil-mc-before-cursors-created
@ -49,14 +40,12 @@
(add-hook! 'evil-mc-after-cursors-deleted
(remove-hook 'evil-insert-state-entry-hook #'evil-mc-resume-cursors t)))
;; Don't use default snippets, use mine.
(after! yasnippet
(setq yas-snippet-dirs
(append (list '+hlissner-snippets-dir)
(delq 'yas-installed-snippets-dir yas-snippet-dirs))))
;; app/irc
(after! circe
(setq +irc-notifications-watch-strings '("v0" "vnought" "hlissner"))
@ -69,7 +58,6 @@
:sasl-password ,(+pass-get-secret "irc/snoonet.org")
:channels (:after-auth "#ynought"))))
;; app/email
(after! mu4e
(setq smtpmail-stream-type 'starttls
@ -95,3 +83,13 @@
(user-mail-address . "henrik@lissner.net")
(mu4e-compose-signature . "---\nHenrik Lissner"))
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))

View file

@ -31,6 +31,9 @@
doom-neotree-chevron-size 0.6
org-ellipsis "")
(custom-set-faces
'(doom-modeline-bar ((t (:background nil)))))
(add-hook! doom-big-font-mode
(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-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
(setq +doom-modeline-height (if doom-big-font-mode 37 29)))))