Now that we are loading package autoloads files (as part of the generated doom-package-autoload-file when running make autoloads), many :commands properties are redundant. In fact, many def-package! blocks are redundant. In some cases, we can do without a config.el file entirely, and can move into the autoloads file or rely entirely on package autoloads. Also, many settings have been moved in their module's autoloads files, which makes them available ASAP; their use no longer depends on module load order. This gained me a modest ~10% boost in startup speed.
14 lines
394 B
EmacsLisp
14 lines
394 B
EmacsLisp
;;; tools/term/config.el -*- lexical-binding: t; -*-
|
|
|
|
;; `multi-term'
|
|
(setq multi-term-dedicated-window-height 20
|
|
multi-term-switch-after-close 'PREVIOUS)
|
|
|
|
;; `term' (built-in)
|
|
(after! term
|
|
(set! :env "SHELL")
|
|
|
|
;; Consider term buffers real
|
|
(defun +term-p (buf)
|
|
(eq (buffer-local-value 'major-mode buf) 'term-mode))
|
|
(add-to-list 'doom-real-buffer-functions #'+eshell-p #'eq))
|