mirror of https://github.com/deuill/dotfiles.git
doom: Introduce "minimal" profile for quick start
This is faster than regular Doom due to a more minimal set of packages loaded, which however is intended in retaining core functionality.
This commit is contained in:
parent
eaa7b9921a
commit
0a2d9f569f
|
@ -4,7 +4,7 @@
|
|||
;;; Includes and required libraries.
|
||||
;;;
|
||||
|
||||
(load! "custom/custom")
|
||||
(load! "custom" "~/.config/doom/custom")
|
||||
|
||||
;;;
|
||||
;;; UI configuration.
|
||||
|
@ -112,6 +112,7 @@
|
|||
shr-max-width fill-column
|
||||
shr-hr-line ?━
|
||||
shr-bullet "• "
|
||||
url-user-agent "Mozilla/5.0 (Android 14; Mobile; rv:109.0) Gecko/121.0 Firefox/121.0"
|
||||
eww-search-prefix "https://lite.duckduckgo.com/lite?q=")
|
||||
(defun shr-add-font (start end type) (+custom/shr-add-font start end type))
|
||||
(set-popup-rule! "^\\*eww\\*" :side 'right :select t :quit 'nil :slot 0 :width (+ fill-column 4)))
|
||||
|
@ -243,6 +244,10 @@
|
|||
(visual-line-mode t)
|
||||
(display-fill-column-indicator-mode 0))
|
||||
|
||||
(add-hook! 'doom-load-theme-hook :append
|
||||
(unless (display-graphic-p)
|
||||
(solaire-global-mode -1)))
|
||||
|
||||
(add-hook! 'doom-scratch-buffer-created-hook
|
||||
(evil-define-key* 'normal 'local (kbd "q") #'(lambda () (interactive) (+popup/close nil t))))
|
||||
|
||||
|
|
|
@ -72,6 +72,9 @@
|
|||
(web +tree-sitter)
|
||||
(yaml +tree-sitter)
|
||||
|
||||
:os
|
||||
(tty +osc)
|
||||
|
||||
:config
|
||||
(default +bindings +smartparens))
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../config.el
|
|
@ -0,0 +1,46 @@
|
|||
;;; .doom.d/init.minimal.el -*- lexical-binding: t; -*-
|
||||
|
||||
(doom! :completion
|
||||
company
|
||||
vertico
|
||||
|
||||
:checkers
|
||||
syntax
|
||||
(spell +hunspell)
|
||||
|
||||
:ui
|
||||
doom
|
||||
hydra
|
||||
(modeline +light)
|
||||
nav-flash
|
||||
ophints
|
||||
(popup +all +defaults)
|
||||
(window-select +numbers +switch-window)
|
||||
zen
|
||||
|
||||
:editor
|
||||
(evil +everywhere)
|
||||
fold
|
||||
multiple-cursors
|
||||
rotate-text
|
||||
word-wrap
|
||||
|
||||
:emacs
|
||||
electric
|
||||
ibuffer
|
||||
undo
|
||||
|
||||
:term
|
||||
eshell
|
||||
|
||||
:tools
|
||||
(lookup +dictionary +docsets +offline)
|
||||
|
||||
:lang
|
||||
markdown
|
||||
|
||||
:os
|
||||
(tty +osc)
|
||||
|
||||
:config
|
||||
(default +bindings +smartparens))
|
|
@ -0,0 +1,5 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; minimal/packages.el
|
||||
|
||||
;; Add-ons.
|
||||
(package! shr-tag-pre-highlight :pin "931c447bc0d6c134ddc9657c664eeee33afbc54d")
|
|
@ -6,9 +6,6 @@
|
|||
;; (package! another-package :recipe (:host github :repo "username/repo"))
|
||||
;; (package! builtin-package :disable t)
|
||||
|
||||
;; Core package overrides.
|
||||
(package! eshell-did-you-mean :disable t)
|
||||
|
||||
;; Add-ons.
|
||||
(package! shr-tag-pre-highlight :pin "931c447bc0d6c134ddc9657c664eeee33afbc54d")
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
;;; profiles.el -*- lexical-binding: t; -*-
|
||||
|
||||
((minimal (user-emacs-directory . "~/.config/emacs")
|
||||
(doom-user-dir . "~/.config/doom/minimal")))
|
|
@ -1,7 +1,7 @@
|
|||
# Set default system-wide editor.
|
||||
VISUAL="emacsclient --socket-name=main --alternate-editor=emacs --tty"
|
||||
VISUAL="emacsclient --socket-name=main --alternate-editor='emacs --profile minimal' --tty"
|
||||
EDITOR="$VISUAL"
|
||||
EMACS_SOCKET_NAME=server
|
||||
EMACS_SOCKET_NAME=main
|
||||
|
||||
# Desktop settings.
|
||||
XDG_CURRENT_DESKTOP=sway
|
||||
|
|
Loading…
Reference in New Issue