Remove third line in section headers
This is truly important stuff. We've saved many lives with this update.
This commit is contained in:
parent
50fdaa0ed5
commit
7d3ffdff06
101 changed files with 64 additions and 283 deletions
|
@ -42,7 +42,6 @@ leftover buffers and processes.")
|
|||
|
||||
;;
|
||||
;; Functions
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-buffer-frame-predicate (buf)
|
||||
|
@ -197,7 +196,6 @@ regex PATTERN. Returns the number of killed buffers."
|
|||
|
||||
;;
|
||||
;; Hooks
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom|mark-buffer-as-real ()
|
||||
|
@ -207,7 +205,6 @@ regex PATTERN. Returns the number of killed buffers."
|
|||
|
||||
;;
|
||||
;; Advice
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom*switch-to-fallback-buffer-maybe (orig-fn)
|
||||
|
@ -241,7 +238,6 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
|||
|
||||
;;
|
||||
;; Interactive commands
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/kill-this-buffer-in-all-windows (buffer &optional dont-save)
|
||||
|
|
|
@ -34,7 +34,6 @@ listed in `doom-cache-alists' to files."
|
|||
|
||||
;;
|
||||
;; Library
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defmacro with-cache! (location &rest body)
|
||||
|
|
|
@ -71,7 +71,6 @@ ready to be pasted in a bug report on github."
|
|||
|
||||
;;
|
||||
;; Commands
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/info ()
|
||||
|
@ -135,9 +134,7 @@ pasting into a bug report or discord."
|
|||
(user-error "No backtrace buffer detected")))
|
||||
|
||||
|
||||
;;
|
||||
;; Vanilla sandbox
|
||||
;;
|
||||
;;; Vanilla sandbox
|
||||
|
||||
(defvar doom--sandbox-init-doom-p nil)
|
||||
|
||||
|
@ -204,9 +201,7 @@ standing in the way, and without sacrificing access to installed packages."
|
|||
(pop-to-buffer buf)))
|
||||
|
||||
|
||||
;;
|
||||
;; Reporting bugs
|
||||
;;
|
||||
;;; Reporting bugs
|
||||
|
||||
(defun doom--open-bug-report ()
|
||||
"TODO"
|
||||
|
@ -276,9 +271,7 @@ will be automatically appended to the result."
|
|||
(pop-to-buffer buf))))
|
||||
|
||||
|
||||
;;
|
||||
;; Profiling
|
||||
;;
|
||||
;;; Profiling
|
||||
|
||||
(defvar doom--profiler nil)
|
||||
;;;###autoload
|
||||
|
|
|
@ -28,7 +28,6 @@ lines, above and below, with only whitespace in between."
|
|||
|
||||
;;
|
||||
;; Commands
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/backward-to-bol-or-indent ()
|
||||
|
@ -273,7 +272,6 @@ Respects `require-final-newline'."
|
|||
|
||||
;;
|
||||
;; Advice
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom*newline-and-indent (_orig-fn)
|
||||
|
@ -293,7 +291,6 @@ with weak native support."
|
|||
|
||||
;;
|
||||
;; Hooks
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom|enable-delete-trailing-whitespace ()
|
||||
|
|
|
@ -67,6 +67,10 @@
|
|||
short-new-name)
|
||||
(short-new-name))))
|
||||
|
||||
|
||||
;;
|
||||
;; Commands
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/delete-this-file (&optional path force-p)
|
||||
"Delete FILENAME (defaults to the file associated with current buffer) and
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
|
||||
;;
|
||||
;; Helpers
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-active-minor-modes ()
|
||||
|
@ -57,7 +56,6 @@
|
|||
|
||||
;;
|
||||
;; Commands
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(define-obsolete-function-alias 'doom/describe-setting 'doom/describe-setters "2.1.0")
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
;;
|
||||
;; Library
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-refresh-packages-maybe (&optional force-p)
|
||||
|
@ -314,7 +313,6 @@ Used by `doom-packages-install'."
|
|||
|
||||
;;
|
||||
;; Main functions
|
||||
;;
|
||||
|
||||
(defun doom--delete-package-files (name-or-desc)
|
||||
(let ((pkg-build-dir
|
||||
|
@ -404,7 +402,6 @@ package.el as appropriate."
|
|||
|
||||
;;
|
||||
;; Interactive commands
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/update-package (pkg)
|
||||
|
@ -436,7 +433,6 @@ calls."
|
|||
|
||||
;;
|
||||
;; Advice
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom*package-delete (desc &rest _)
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
;;
|
||||
;; Macros
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defmacro without-project-cache! (&rest body)
|
||||
|
@ -25,7 +24,6 @@ they are absolute."
|
|||
|
||||
;;
|
||||
;; Commands
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/reload-project ()
|
||||
|
@ -39,7 +37,6 @@ they are absolute."
|
|||
|
||||
;;
|
||||
;; Library
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-project-p (&optional nocache)
|
||||
|
|
|
@ -22,7 +22,6 @@ following:
|
|||
|
||||
;;
|
||||
;; Library
|
||||
;;
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-scratch-buffer (&optional file mode text)
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
;;
|
||||
;; Dispatcher API
|
||||
;;
|
||||
|
||||
(defvar doom-auto-accept (getenv "YES")
|
||||
"If non-nil, Doom will auto-accept any confirmation prompts during batch
|
||||
|
@ -85,10 +84,8 @@ BODY will be run when this dispatcher is called."
|
|||
|
||||
|
||||
;;
|
||||
;; Dispatch commands
|
||||
;;
|
||||
;; Dummy dispatch commands (no-op because they're handled especially)
|
||||
|
||||
;; Dummy dispatchers (no-op because they're handled especially)
|
||||
(dispatcher! run :noop
|
||||
"Run Doom Emacs from bin/doom's parent directory.
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@ fundamental-mode) for performance sake."
|
|||
|
||||
;;
|
||||
;; Built-in plugins
|
||||
;;
|
||||
|
||||
(push '("/LICENSE\\'" . text-mode) auto-mode-alist)
|
||||
|
||||
|
@ -151,8 +150,7 @@ savehist file."
|
|||
|
||||
|
||||
;;
|
||||
;; Core Plugins
|
||||
;;
|
||||
;; Packages
|
||||
|
||||
;; Auto-close delimiters and blocks as you type. It's more powerful than that,
|
||||
;; but that is all Doom uses it for.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; core-lib.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; Built in packages we use a lot of
|
||||
;; Built-in packages we use a lot of
|
||||
(require 'subr-x)
|
||||
(require 'cl-lib)
|
||||
|
||||
|
@ -31,7 +31,6 @@ means to remove KEY from ALIST if the new value is `eql' to DEFAULT."
|
|||
|
||||
;;
|
||||
;; Helpers
|
||||
;;
|
||||
|
||||
(defun doom--resolve-path-forms (spec &optional directory)
|
||||
"Converts a simple nested series of or/and forms into a series of
|
||||
|
@ -93,8 +92,7 @@ This is used by `associate!', `file-exists-p!' and `project-file-exists-p!'."
|
|||
|
||||
|
||||
;;
|
||||
;; Functions
|
||||
;;
|
||||
;; Public library
|
||||
|
||||
(defun doom-unquote (exp)
|
||||
"Return EXP unquoted."
|
||||
|
|
|
@ -30,7 +30,6 @@ A warning will be put out if these deprecated modules are used.")
|
|||
|
||||
;;
|
||||
;; Bootstrap API
|
||||
;;
|
||||
|
||||
(defun doom-initialize-modules (&optional force-p)
|
||||
"Loads the init.el in `doom-private-dir' and sets up hooks for a healthy
|
||||
|
@ -65,7 +64,6 @@ non-nil."
|
|||
|
||||
;;
|
||||
;; Module API
|
||||
;;
|
||||
|
||||
(defun doom-module-p (category module)
|
||||
"Returns t if CATEGORY MODULE is enabled (ie. present in `doom-modules')."
|
||||
|
@ -188,7 +186,6 @@ non-nil, return paths of possible modules, activated or otherwise."
|
|||
|
||||
;;
|
||||
;; Use-package modifications
|
||||
;;
|
||||
|
||||
(autoload 'use-package "use-package-core" nil nil t)
|
||||
|
||||
|
@ -246,7 +243,6 @@ non-nil, return paths of possible modules, activated or otherwise."
|
|||
|
||||
;;
|
||||
;; Module config macros
|
||||
;;
|
||||
|
||||
(defmacro doom! (&rest modules)
|
||||
"Bootstraps DOOM Emacs and its modules.
|
||||
|
@ -382,7 +378,6 @@ omitted. eg. (featurep! +flag1)"
|
|||
|
||||
;;
|
||||
;; FIXME Cross-module configuration (deprecated)
|
||||
;;
|
||||
|
||||
;; I needed a way to reliably cross-configure modules without littering my
|
||||
;; modules with `after!' blocks or testing whether they were enabled, so I wrote
|
||||
|
|
|
@ -75,7 +75,6 @@ missing) and shouldn't be deleted.")
|
|||
|
||||
;;
|
||||
;; Bootstrapper
|
||||
;;
|
||||
|
||||
(defun doom-initialize-packages (&optional force-p)
|
||||
"Ensures that Doom's package management system, package.el and quelpa are
|
||||
|
@ -137,7 +136,6 @@ them."
|
|||
|
||||
;;
|
||||
;; Package API
|
||||
;;
|
||||
|
||||
(defun doom-ensure-packages-initialized (&optional force-p)
|
||||
"Make sure package.el is initialized."
|
||||
|
@ -169,7 +167,6 @@ them."
|
|||
|
||||
;;
|
||||
;; Module package macros
|
||||
;;
|
||||
|
||||
(cl-defmacro package! (name &rest plist &key recipe pin disable _ignore _freeze)
|
||||
"Declares a package and how to install it (if applicable).
|
||||
|
|
|
@ -63,8 +63,7 @@
|
|||
|
||||
|
||||
;;
|
||||
;; Projects
|
||||
;;
|
||||
;; Project-based minor modes
|
||||
|
||||
(defvar-local doom-project nil
|
||||
"Either the symbol or a list of project modes you want to enable. Available
|
||||
|
|
|
@ -75,8 +75,7 @@ shorter major mode name in the mode-line. See `doom|set-mode-name'.")
|
|||
|
||||
|
||||
;;
|
||||
;; Plugins
|
||||
;;
|
||||
;; Third party packages
|
||||
|
||||
;; `avy'
|
||||
(setq avy-all-windows nil
|
||||
|
@ -136,7 +135,6 @@ shorter major mode name in the mode-line. See `doom|set-mode-name'.")
|
|||
|
||||
;;
|
||||
;; Built-in packages
|
||||
;;
|
||||
|
||||
;; show typed keystrokes in minibuffer
|
||||
(defun doom|enable-ui-keystrokes () (setq echo-keystrokes 0.02))
|
||||
|
@ -326,7 +324,6 @@ character that looks like a space that `whitespace-mode' won't affect.")
|
|||
|
||||
;;
|
||||
;; Theme & font
|
||||
;;
|
||||
|
||||
(defvar doom-last-window-system
|
||||
(if (daemonp) 'daemon initial-window-system)
|
||||
|
@ -393,7 +390,6 @@ frame's window-system, the theme will be reloaded.")
|
|||
|
||||
;;
|
||||
;; Bootstrap
|
||||
;;
|
||||
|
||||
;; simple name in frame title
|
||||
(setq frame-title-format '("%b – Doom Emacs"))
|
||||
|
@ -454,7 +450,6 @@ instead). Meant for `kill-buffer-query-functions'."
|
|||
(add-hook 'emacs-startup-hook #'doom|init-ui)
|
||||
|
||||
|
||||
;;
|
||||
;; Fixes/hacks
|
||||
;;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ line or use --debug-init to enable this.")
|
|||
|
||||
;;
|
||||
;; Constants
|
||||
;;
|
||||
|
||||
(defconst doom-version "2.0.9"
|
||||
"Current version of DOOM emacs.")
|
||||
|
@ -82,7 +81,6 @@ file.")
|
|||
|
||||
;;
|
||||
;; Doom core variables
|
||||
;;
|
||||
|
||||
(defvar doom-init-p nil
|
||||
"Non-nil if `doom-initialize' has run.")
|
||||
|
@ -105,7 +103,6 @@ Doom was setup, which can cause problems.")
|
|||
|
||||
;;
|
||||
;; Custom error types
|
||||
;;
|
||||
|
||||
(define-error 'doom-error "Error in Doom Emacs core")
|
||||
(define-error 'doom-hook-error "Error in a Doom startup hook" 'doom-error)
|
||||
|
@ -117,7 +114,6 @@ Doom was setup, which can cause problems.")
|
|||
|
||||
;;
|
||||
;; Custom hooks
|
||||
;;
|
||||
|
||||
(defvar doom-init-hook nil
|
||||
"Hooks run after all init.el files are loaded, including your private and all
|
||||
|
@ -206,7 +202,6 @@ and `doom-exit-window-hook'."
|
|||
|
||||
;;
|
||||
;; Emacs core configuration
|
||||
;;
|
||||
|
||||
;; UTF-8 as the default coding system
|
||||
(when (fboundp 'set-charset-priority)
|
||||
|
@ -309,7 +304,6 @@ original value of `symbol-file'."
|
|||
|
||||
;;
|
||||
;; Bootstrap helpers
|
||||
;;
|
||||
|
||||
(defun doom-try-run-hook (hook)
|
||||
"Run HOOK (a hook function), but marks thrown errors to make it a little
|
||||
|
@ -382,7 +376,6 @@ If RETURN-P, return the message as a string instead of displaying it."
|
|||
|
||||
;;
|
||||
;; Bootstrap functions
|
||||
;;
|
||||
|
||||
(defun doom-initialize (&optional force-p force-load-core-p)
|
||||
"Bootstrap Doom, if it hasn't already (or if FORCE-P is non-nil).
|
||||
|
@ -463,7 +456,6 @@ in interactive sessions, nil otherwise (but logs a warning)."
|
|||
|
||||
;;
|
||||
;; Bootstrap Doom
|
||||
;;
|
||||
|
||||
(add-to-list 'load-path doom-core-dir)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue