From 13561c3ddff36638c2bdfa70f96f88817af1de3d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 9 Dec 2017 14:49:29 -0500 Subject: [PATCH] private/hlissner: refactor + update --- modules/private/hlissner/config.el | 34 ++++++++++++++---------------- modules/private/hlissner/init.el | 10 +++++++++ 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/modules/private/hlissner/config.el b/modules/private/hlissner/config.el index 469399338..0b9ed8cbc 100644 --- a/modules/private/hlissner/config.el +++ b/modules/private/hlissner/config.el @@ -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)) diff --git a/modules/private/hlissner/init.el b/modules/private/hlissner/init.el index 3f6bed82a..f1c5768ba 100644 --- a/modules/private/hlissner/init.el +++ b/modules/private/hlissner/init.el @@ -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)))))