Minor refactors across the board

This commit is contained in:
Henrik Lissner 2019-11-04 03:35:37 -05:00
parent 684e69c968
commit 2bf74158fd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 7 additions and 11 deletions

View file

@ -70,9 +70,9 @@ possible."
(progn (make-directory parent-directory 'parents)
t))))))
;; Don't autosave files or create lock/history/backup files. The
;; editor doesn't need to hold our hands so much. We'll rely on git
;; and our own good fortune instead. Fingers crossed!
;; Don't autosave files or create lock/history/backup files. We don't want
;; copies of potentially sensitive material floating around, and we'll rely on
;; git and our own good fortune instead. Fingers crossed!
(setq auto-save-default nil
create-lockfiles nil
make-backup-files nil

View file

@ -1,7 +1,7 @@
;;; editor/rotate-text/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(after! rotate-text
(with-eval-after-load 'rotate-text
(add-to-list 'rotate-text-words '("true" "false")))
;;;###autodef

View file

@ -57,9 +57,8 @@ you're done. This can be called from an external shell script."
(org-capture)
(unwind-protect
(counsel-org-capture)
(if-let* ((buf (cl-loop for buf in (buffer-list)
if (buffer-local-value 'org-capture-mode buf)
return buf)))
(if-let (buf (cl-find-if (doom-partial #'buffer-local-value 'org-capture-mode)
(buffer-list)))
(with-current-buffer buf
(add-hook 'kill-buffer-hook #'+org-capture-cleanup-frame-h nil t))
(delete-frame frame))))))

View file

@ -53,10 +53,8 @@
:recipe (:host github :repo "anler/centered-window-mode"))
(package! org-tree-slide)
(package! org-re-reveal))
(when (featurep! +journal)
(package! org-journal))
(when (featurep! +hugo)
(package! ox-hugo
:recipe (:host github :repo "kaushalmodi/ox-hugo" :nonrecursive t)))

View file

@ -18,8 +18,7 @@ jumping to another part of the file)."
or triggered from one of `+nav-flash-exclude-commands'."
(unless (or (memq this-command +nav-flash-exclude-commands)
(bound-and-true-p so-long-minor-mode)
(eq major-mode 'so-long-mode)
(derived-mode-p 'special-mode 'term-mode)
(derived-mode-p 'so-long-mode 'special-mode 'term-mode)
(and (equal (point-marker) (car +nav-flash--last-point))
(equal (selected-window) (cdr +nav-flash--last-point))))
(+nav-flash-blink-cursor)