dev: merge branch 'master' into emenel
This commit is contained in:
commit
f58082cb0c
9 changed files with 25 additions and 29 deletions
|
@ -13,9 +13,9 @@ Includes:
|
||||||
[Install](#install) • [Documentation] • [FAQ] • [Screenshots] • [Contribute](#contribute)
|
[Install](#install) • [Documentation] • [FAQ] • [Screenshots] • [Contribute](#contribute)
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|
<!--  -->
|
||||||
[][Discord]
|
[][Discord]
|
||||||
[][Discourse]
|
[][Discourse]
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ Check out [the FAQ][FAQ] for answers to common questions about the project.
|
||||||
|
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
- Git 2.23+
|
- Git 2.23+
|
||||||
- Emacs 27.1–29.3 (**Recommended: 29.3 +
|
- Emacs 27.1–29.4 (**Recommended: 29.4 +
|
||||||
[native-comp](https://www.emacswiki.org/emacs/GccEmacs)**)
|
[native-comp](https://www.emacswiki.org/emacs/GccEmacs)**)
|
||||||
- [ripgrep] 11.0+
|
- [ripgrep] 11.0+
|
||||||
- GNU `find`
|
- GNU `find`
|
||||||
|
|
|
@ -723,6 +723,11 @@ original state.")
|
||||||
(let (autoload-compute-prefixes)
|
(let (autoload-compute-prefixes)
|
||||||
(apply fn args)))
|
(apply fn args)))
|
||||||
|
|
||||||
|
(defadvice! doom-cli--straight-suppress-confirm-a (&rest _)
|
||||||
|
:before-until #'straight-are-you-sure
|
||||||
|
(and (bound-and-true-p doom-cli--context)
|
||||||
|
(doom-cli-context-suppress-prompts-p doom-cli--context)))
|
||||||
|
|
||||||
(defadvice! doom-cli--straight-fallback-to-tty-prompt-a (fn prompt actions)
|
(defadvice! doom-cli--straight-fallback-to-tty-prompt-a (fn prompt actions)
|
||||||
"Modifies straight to prompt on the terminal when in noninteractive sessions."
|
"Modifies straight to prompt on the terminal when in noninteractive sessions."
|
||||||
:around #'straight--popup-raw
|
:around #'straight--popup-raw
|
||||||
|
|
|
@ -143,9 +143,9 @@
|
||||||
;; ...but `set-language-environment' also sets `default-input-method', which is
|
;; ...but `set-language-environment' also sets `default-input-method', which is
|
||||||
;; a step too opinionated.
|
;; a step too opinionated.
|
||||||
(setq default-input-method nil)
|
(setq default-input-method nil)
|
||||||
;; ...And the clipboard on Windows could be in a wider encoding (UTF-16), so
|
;; ...And the clipboard on Windows is often a wider encoding (UTF-16), so leave
|
||||||
;; leave Emacs to its own devices there.
|
;; Emacs to its own devices there.
|
||||||
(eval-when! (not doom--system-windows-p)
|
(unless doom--system-windows-p
|
||||||
(setq selection-coding-system 'utf-8))
|
(setq selection-coding-system 'utf-8))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
(when (< emacs-major-version 27)
|
(when (< emacs-major-version 27)
|
||||||
(user-error
|
(user-error
|
||||||
(concat
|
(concat
|
||||||
"Detected Emacs " emacs-version ", but Doom requires 27.1 or newer (29.3 is\n\n"
|
"Detected Emacs " emacs-version ", but Doom requires 27.1 or newer (29.4 is\n\n"
|
||||||
"recommended). The current Emacs executable in use is:\n\n " (car command-line-args)
|
"recommended). The current Emacs executable in use is:\n\n " (car command-line-args)
|
||||||
"\n\nA guide for installing a newer version of Emacs can be found at:\n\n "
|
"\n\nA guide for installing a newer version of Emacs can be found at:\n\n "
|
||||||
(format "https://docs.doomemacs.org/-/install/%s"
|
(format "https://docs.doomemacs.org/-/install/%s"
|
||||||
|
|
|
@ -316,16 +316,14 @@ exist, and `org-link' otherwise."
|
||||||
(defun +org-image-file-data-fn (protocol link _description)
|
(defun +org-image-file-data-fn (protocol link _description)
|
||||||
"Intepret LINK as an image file path and return its data."
|
"Intepret LINK as an image file path and return its data."
|
||||||
(setq
|
(setq
|
||||||
link (expand-file-name
|
|
||||||
link (pcase protocol
|
link (pcase protocol
|
||||||
("download"
|
("download"
|
||||||
(or (if (require 'org-download nil t) org-download-image-dir)
|
(expand-file-name link (or (if (require 'org-download nil t) org-download-image-dir)
|
||||||
(if (require 'org-attach) org-attach-id-dir)
|
default-directory)))
|
||||||
default-directory))
|
|
||||||
("attachment"
|
("attachment"
|
||||||
(require 'org-attach)
|
(require 'org-attach)
|
||||||
org-attach-id-dir)
|
(org-attach-expand link))
|
||||||
(_ default-directory))))
|
(_ (expand-file-name link default-directory))))
|
||||||
(when (and (file-exists-p link)
|
(when (and (file-exists-p link)
|
||||||
(image-type-from-file-name link))
|
(image-type-from-file-name link))
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
|
|
|
@ -494,7 +494,7 @@ relative to `org-directory', unless it is an absolute path."
|
||||||
(add-to-list 'projectile-globally-ignored-directories org-attach-id-dir)))
|
(add-to-list 'projectile-globally-ignored-directories org-attach-id-dir)))
|
||||||
|
|
||||||
;; Add inline image previews for attachment links
|
;; Add inline image previews for attachment links
|
||||||
(org-link-set-parameters "attachment" :image-data-fun #'+org-inline-image-data-fn))
|
(org-link-set-parameters "attachment" :image-data-fun #'+org-image-file-data-fn))
|
||||||
|
|
||||||
|
|
||||||
(defun +org-init-custom-links-h ()
|
(defun +org-init-custom-links-h ()
|
||||||
|
|
|
@ -64,8 +64,7 @@ server an expensive restart when its buffer is reverted."
|
||||||
(use-package! consult-eglot
|
(use-package! consult-eglot
|
||||||
:defer t
|
:defer t
|
||||||
:when (modulep! :completion vertico)
|
:when (modulep! :completion vertico)
|
||||||
:init
|
:init (define-key eglot-mode-map [remap xref-find-apropos] #'consult-eglot-symbols))
|
||||||
(map! :map eglot-mode-map [remap xref-find-apropos] #'consult-eglot-symbols))
|
|
||||||
|
|
||||||
|
|
||||||
(use-package! flycheck-eglot
|
(use-package! flycheck-eglot
|
||||||
|
|
|
@ -33,13 +33,7 @@
|
||||||
(defun +tabs-disable-centaur-tabs-mode-maybe-h ()
|
(defun +tabs-disable-centaur-tabs-mode-maybe-h ()
|
||||||
"Disable `centaur-tabs-mode' in current buffer."
|
"Disable `centaur-tabs-mode' in current buffer."
|
||||||
(when (centaur-tabs-mode-on-p)
|
(when (centaur-tabs-mode-on-p)
|
||||||
(centaur-tabs-local-mode))))
|
(centaur-tabs-local-mode)))))
|
||||||
|
|
||||||
(add-hook! 'doom-load-theme-hook
|
|
||||||
(defun +tabs-reload-centaur-tabs-h ()
|
|
||||||
(when (bound-and-true-p centaur-tabs-mode)
|
|
||||||
(centaur-tabs-mode -1)
|
|
||||||
(centaur-tabs-mode +1)))))
|
|
||||||
|
|
||||||
;; TODO tab-bar-mode (emacs 27)
|
;; TODO tab-bar-mode (emacs 27)
|
||||||
;; TODO tab-line-mode (emacs 27)
|
;; TODO tab-line-mode (emacs 27)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
;; -*- no-byte-compile: t; -*-
|
;; -*- no-byte-compile: t; -*-
|
||||||
;;; ui/tabs/packages.el
|
;;; ui/tabs/packages.el
|
||||||
|
|
||||||
(package! centaur-tabs :pin "4a121a175e663295fcd295512642dae4d2ff9db3")
|
(package! centaur-tabs :pin "d6009c295a4363930247ae9a4d1125aea4d3fd74")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue