Minor refactors & reformatting across the board

This commit is contained in:
Henrik Lissner 2019-10-17 01:47:58 -04:00
parent d5d85d1b03
commit 323e0adf45
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
9 changed files with 14 additions and 13 deletions

View file

@ -104,9 +104,9 @@ possible."
;;
;;; Clipboard / kill-ring
;; Eliminate duplicates in the kill ring. That is, if you kill the
;; same thing twice, you won't have to use M-y twice to get past it
;; to older entries in the kill ring.
;; Eliminate duplicates in the kill ring. That is, if you kill the same thing
;; twice, you won't have to use M-y twice to get past it to older entries in the
;; kill ring.
(setq kill-do-not-save-duplicates t)
;;

View file

@ -1,5 +1,9 @@
;;; core.el --- the heart of the beast -*- lexical-binding: t; -*-
(when (version< emacs-version "25.3")
(error "Detected Emacs %s. Doom only supports Emacs 25.3 and higher"
emacs-version))
;; Ensure `doom-core-dir' is in `load-path'
(add-to-list 'load-path (file-name-directory load-file-name))

View file

@ -366,7 +366,7 @@ It is integrated into Helpful, in Doom.
** Persist Emacs' initial frame position, dimensions and/or full-screen state across sessions
#+BEGIN_SRC elisp
;; add to ~/.doom.d/config.el
(when-let* ((dims (doom-cache-get 'last-frame-size)))
(when-let (dims (doom-cache-get 'last-frame-size))
(cl-destructuring-bind ((left . top) width height fullscreen) dims
(setq initial-frame-alist
(append initial-frame-alist

View file

@ -39,10 +39,6 @@
(setq load-prefer-newer noninteractive)
(let (file-name-handler-alist)
(when (version< emacs-version "25.3")
(error "Detected Emacs %s. Doom only supports Emacs 25.3 and higher"
emacs-version))
;; Ensure Doom is running out of this file's directory
(setq user-emacs-directory (file-name-directory load-file-name)))

View file

@ -129,7 +129,7 @@ immediately runs it on the current candidate (ending the ivy session)."
(setq +ivy--origin nil))))
(after! yasnippet
(add-to-list 'yas-prompt-functions #'+ivy-yas-prompt nil #'eq))
(add-hook 'yas-prompt-functions #'+ivy-yas-prompt))
(defadvice! +ivy--inhibit-in-evil-ex-a (orig-fn &rest args)
"`ivy-completion-in-region' struggles with completing certain

View file

@ -28,4 +28,4 @@
(warn! "Couldn't find the racer binary at `racer-cmd'"))
;; rust source code (rustup component add rust-src)
(unless (file-directory-p racer-rust-src-path)
(warn! "Couldn't find Rust's source code at RUST_SRC_PATH or `racer-rust-src-path'."))))
(warn! "Couldn't find Rust's source code at RUST_SRC_PATH or `racer-rust-src-path'"))))

View file

@ -34,7 +34,7 @@
(add-hook 'css-mode-hook #'rainbow-delimiters-mode)
(set-company-backend! '(css-mode scss-mode)
(if EMACS26+
;; css-mode's built in completion is superior in 26+
;; DEPRECATED css-mode's built in completion is superior in 26+
'company-capf
'company-css))
(map! :map scss-mode-map :localleader "b" #'+css/scss-build))

View file

@ -10,4 +10,4 @@
(warn! "Couldn't find cmake command. Vterm module won't compile"))
(unless (fboundp 'module-load)
(warn! "Your emacs doesn't have MODULES support. Vterm module won't work"))
(warn! "Your emacs wasn't built with dynamic modules support. The vterm module won't build"))

View file

@ -129,7 +129,8 @@ PLIST can have the following properties:
(add-hook 'persp-before-switch-functions #'+doom-dashboard--persp-record-project-h)))
(add-hook 'doom-init-ui-hook #'+doom-dashboard-init-h)
(remove-hook 'window-setup-hook #'doom-display-benchmark-h)
(unless doom-debug-mode
(remove-hook 'window-setup-hook #'doom-display-benchmark-h))
;;