General update for docstrings and comments & minor refactor
This commit is contained in:
parent
6790d666e0
commit
45c2221316
7 changed files with 12 additions and 14 deletions
|
@ -113,9 +113,8 @@ fundamental-mode) for performance sake."
|
||||||
;; Handles whitespace (tabs/spaces) settings externally. This way projects can
|
;; Handles whitespace (tabs/spaces) settings externally. This way projects can
|
||||||
;; specify their own formatting rules.
|
;; specify their own formatting rules.
|
||||||
(def-package! editorconfig
|
(def-package! editorconfig
|
||||||
|
:hook (doom-init . editorconfig-mode)
|
||||||
:config
|
:config
|
||||||
(add-hook 'doom-init-hook #'editorconfig-mode)
|
|
||||||
|
|
||||||
;; editorconfig cannot procure the correct settings for extension-less files.
|
;; editorconfig cannot procure the correct settings for extension-less files.
|
||||||
;; Executable scripts with a shebang line, for example. So why not use Emacs'
|
;; Executable scripts with a shebang line, for example. So why not use Emacs'
|
||||||
;; major mode to drop editorconfig a hint? This is accomplished by temporarily
|
;; major mode to drop editorconfig a hint? This is accomplished by temporarily
|
||||||
|
@ -180,8 +179,8 @@ extension, try to guess one."
|
||||||
|
|
||||||
;; Branching undo
|
;; Branching undo
|
||||||
(def-package! undo-tree
|
(def-package! undo-tree
|
||||||
|
:hook (doom-init . global-undo-tree-mode)
|
||||||
:config
|
:config
|
||||||
(add-hook 'doom-init-hook #'global-undo-tree-mode)
|
|
||||||
;; persistent undo history is known to cause undo history corruption, which
|
;; persistent undo history is known to cause undo history corruption, which
|
||||||
;; can be very destructive! So disable it!
|
;; can be very destructive! So disable it!
|
||||||
(setq undo-tree-auto-save-history nil
|
(setq undo-tree-auto-save-history nil
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
;;; core/packages.el
|
;;; core/packages.el
|
||||||
|
|
||||||
;; core-os.el
|
;; core-os.el
|
||||||
;; In case this config is shared across multiple computers (like mine is), let's
|
|
||||||
;; protect these from autoremoval.
|
|
||||||
(package! exec-path-from-shell :ignore (not IS-MAC))
|
(package! exec-path-from-shell :ignore (not IS-MAC))
|
||||||
(package! osx-clipboard :ignore (not IS-MAC))
|
(package! osx-clipboard :ignore (not IS-MAC))
|
||||||
|
|
||||||
|
|
|
@ -101,9 +101,10 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
cmd
|
cmd
|
||||||
'(("O" +ivy-git-grep-other-window-action "open in other window"))))
|
'(("O" +ivy-git-grep-other-window-action "open in other window"))))
|
||||||
|
|
||||||
;; 1. Remove character limit from `counsel-ag-function'
|
;; Removes character limit from `counsel-ag-function'
|
||||||
;; 2. This may need to be updated frequently, to meet changes upstream
|
;;
|
||||||
;; 3. counsel-ag, counsel-rg and counsel-pt all use this function
|
;; This may need to be updated frequently, to meet changes upstream
|
||||||
|
;; counsel-ag, counsel-rg and counsel-pt all use this function
|
||||||
(advice-add #'counsel-ag-function :override #'+ivy*counsel-ag-function))
|
(advice-add #'counsel-ag-function :override #'+ivy*counsel-ag-function))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
(autoload 'goto-last-change-reverse "goto-chg")
|
(autoload 'goto-last-change-reverse "goto-chg")
|
||||||
|
|
||||||
(def-package! evil
|
(def-package! evil
|
||||||
:init
|
:config
|
||||||
(setq evil-want-C-u-scroll t
|
(setq evil-want-C-u-scroll t
|
||||||
evil-want-visual-char-semi-exclusive t
|
evil-want-visual-char-semi-exclusive t
|
||||||
evil-want-Y-yank-to-eol t
|
evil-want-Y-yank-to-eol t
|
||||||
|
@ -39,7 +39,6 @@
|
||||||
;; don't activate mark on shift-click
|
;; don't activate mark on shift-click
|
||||||
shift-select-mode nil)
|
shift-select-mode nil)
|
||||||
|
|
||||||
:config
|
|
||||||
(add-hook 'doom-init-hook #'evil-mode)
|
(add-hook 'doom-init-hook #'evil-mode)
|
||||||
(evil-select-search-module 'evil-search-module 'evil-search)
|
(evil-select-search-module 'evil-search-module 'evil-search)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
;;; feature/syntax-checker/config.el -*- lexical-binding: t; -*-
|
;;; feature/syntax-checker/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; pkg-info doesn't get autoloaded when `flycheck-version' needs it, so we do
|
;; Since Doom doesn't use `package-initialize', pkg-info won't get autoloaded
|
||||||
;; it ourselves:
|
;; when `flycheck-version' needs it, so we need this:
|
||||||
(autoload 'pkg-info-version-info "pkg-info")
|
(autoload 'pkg-info-version-info "pkg-info")
|
||||||
|
|
||||||
(def-package! flycheck
|
(def-package! flycheck
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +workspace-get (name &optional noerror)
|
(defun +workspace-get (name &optional noerror)
|
||||||
"Returns a workspace (perspective hash table) named NAME."
|
"Returns a workspace (perspective struct) named NAME."
|
||||||
(when-let* ((persp (persp-get-by-name name)))
|
(when-let* ((persp (persp-get-by-name name)))
|
||||||
(cond ((+workspace-p persp) persp)
|
(cond ((+workspace-p persp) persp)
|
||||||
((not noerror) (error "'%s' is an invalid workspace" name)))))
|
((not noerror) (error "'%s' is an invalid workspace" name)))))
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
;; see:
|
;; see:
|
||||||
;; + `+eshell/open': open in current buffer
|
;; + `+eshell/open': open in current buffer
|
||||||
;; + `+eshell/open-popup': open in a popup
|
;; + `+eshell/open-popup': open in a popup
|
||||||
;; + `+eshell/open-workspace': open in separate tab (requires :feature workspaces)
|
;; + `+eshell/open-workspace': open in separate tab (requires :feature
|
||||||
|
;; workspaces)
|
||||||
|
|
||||||
(def-package! eshell ; built-in
|
(def-package! eshell ; built-in
|
||||||
:commands eshell-mode
|
:commands eshell-mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue