merge: pull request #7389 from hpfr/misc
This commit is contained in:
commit
af5add0e9e
11 changed files with 44 additions and 28 deletions
|
@ -177,9 +177,13 @@ Use `winner-undo' to undo this. Alternatively, use
|
||||||
OPACITY is an integer between 0 to 100, inclusive."
|
OPACITY is an integer between 0 to 100, inclusive."
|
||||||
(interactive
|
(interactive
|
||||||
(list (read-number "Opacity (0-100): "
|
(list (read-number "Opacity (0-100): "
|
||||||
(or (frame-parameter nil 'alpha)
|
(or (frame-parameter
|
||||||
|
nil (if (> emacs-major-version 28)
|
||||||
|
'alpha-background 'alpha))
|
||||||
100))))
|
100))))
|
||||||
(set-frame-parameter nil 'alpha opacity))
|
(set-frame-parameter nil (if (> emacs-major-version 28)
|
||||||
|
'alpha-background 'alpha)
|
||||||
|
opacity))
|
||||||
|
|
||||||
(defvar doom--narrowed-base-buffer nil)
|
(defvar doom--narrowed-base-buffer nil)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
|
@ -253,6 +253,7 @@ orderless."
|
||||||
|
|
||||||
(set-popup-rule! "^\\*Embark Export:" :size 0.35 :ttl 0 :quit nil)
|
(set-popup-rule! "^\\*Embark Export:" :size 0.35 :ttl 0 :quit nil)
|
||||||
|
|
||||||
|
(after! which-key
|
||||||
(defadvice! +vertico--embark-which-key-prompt-a (fn &rest args)
|
(defadvice! +vertico--embark-which-key-prompt-a (fn &rest args)
|
||||||
"Hide the which-key indicator immediately when using the completing-read prompter."
|
"Hide the which-key indicator immediately when using the completing-read prompter."
|
||||||
:around #'embark-completing-read-prompter
|
:around #'embark-completing-read-prompter
|
||||||
|
@ -260,7 +261,8 @@ orderless."
|
||||||
(let ((embark-indicators
|
(let ((embark-indicators
|
||||||
(remq #'embark-which-key-indicator embark-indicators)))
|
(remq #'embark-which-key-indicator embark-indicators)))
|
||||||
(apply fn args)))
|
(apply fn args)))
|
||||||
(cl-nsubstitute #'+vertico-embark-which-key-indicator #'embark-mixed-indicator embark-indicators)
|
(cl-nsubstitute #'+vertico-embark-which-key-indicator #'embark-mixed-indicator embark-indicators))
|
||||||
|
|
||||||
;; add the package! target finder before the file target finder,
|
;; add the package! target finder before the file target finder,
|
||||||
;; so we don't get a false positive match.
|
;; so we don't get a false positive match.
|
||||||
(let ((pos (or (cl-position
|
(let ((pos (or (cl-position
|
||||||
|
|
|
@ -126,6 +126,9 @@
|
||||||
:desc "Search .emacs.d" "e" #'+default/search-emacsd
|
:desc "Search .emacs.d" "e" #'+default/search-emacsd
|
||||||
:desc "Locate file" "f" #'+lookup/file
|
:desc "Locate file" "f" #'+lookup/file
|
||||||
:desc "Jump to symbol" "i" #'imenu
|
:desc "Jump to symbol" "i" #'imenu
|
||||||
|
:desc "Jump to symbol in open buffers" "I"
|
||||||
|
(cond ((modulep! :completion vertico) #'consult-imenu-multi)
|
||||||
|
((modulep! :completion helm) #'helm-imenu-in-all-buffers))
|
||||||
:desc "Jump to visible link" "l" #'link-hint-open-link
|
:desc "Jump to visible link" "l" #'link-hint-open-link
|
||||||
:desc "Jump to link" "L" #'ffap-menu
|
:desc "Jump to link" "L" #'ffap-menu
|
||||||
:desc "Jump to bookmark" "m" #'bookmark-jump
|
:desc "Jump to bookmark" "m" #'bookmark-jump
|
||||||
|
@ -145,7 +148,10 @@
|
||||||
|
|
||||||
;;; <leader> i --- insert
|
;;; <leader> i --- insert
|
||||||
(:prefix-map ("i" . "insert")
|
(:prefix-map ("i" . "insert")
|
||||||
:desc "Emoji" "e" #'emojify-insert-emoji
|
(:when (> emacs-major-version 28)
|
||||||
|
:desc "Emoji" "e" #'emoji-search)
|
||||||
|
(:when (modulep! :ui emoji)
|
||||||
|
:desc "Emoji" "e" #'emojify-insert-emoji)
|
||||||
:desc "Current file name" "f" #'+default/insert-file-path
|
:desc "Current file name" "f" #'+default/insert-file-path
|
||||||
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
||||||
:desc "Snippet" "s" #'yas-insert-snippet
|
:desc "Snippet" "s" #'yas-insert-snippet
|
||||||
|
|
|
@ -496,7 +496,10 @@
|
||||||
|
|
||||||
;;; <leader> i --- insert
|
;;; <leader> i --- insert
|
||||||
(:prefix-map ("i" . "insert")
|
(:prefix-map ("i" . "insert")
|
||||||
:desc "Emoji" "e" #'emojify-insert-emoji
|
(:when (> emacs-major-version 28)
|
||||||
|
:desc "Emoji" "e" #'emoji-search)
|
||||||
|
(:when (modulep! :ui emoji)
|
||||||
|
:desc "Emoji" "e" #'emojify-insert-emoji)
|
||||||
:desc "Current file name" "f" #'+default/insert-file-path
|
:desc "Current file name" "f" #'+default/insert-file-path
|
||||||
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
||||||
:desc "Evil ex path" "p" (cmd! (evil-ex "R!echo "))
|
:desc "Evil ex path" "p" (cmd! (evil-ex "R!echo "))
|
||||||
|
@ -736,6 +739,9 @@
|
||||||
:desc "Search .emacs.d" "e" #'+default/search-emacsd
|
:desc "Search .emacs.d" "e" #'+default/search-emacsd
|
||||||
:desc "Locate file" "f" #'locate
|
:desc "Locate file" "f" #'locate
|
||||||
:desc "Jump to symbol" "i" #'imenu
|
:desc "Jump to symbol" "i" #'imenu
|
||||||
|
:desc "Jump to symbol in open buffers" "I"
|
||||||
|
(cond ((modulep! :completion vertico) #'consult-imenu-multi)
|
||||||
|
((modulep! :completion helm) #'helm-imenu-in-all-buffers))
|
||||||
:desc "Jump to visible link" "l" #'link-hint-open-link
|
:desc "Jump to visible link" "l" #'link-hint-open-link
|
||||||
:desc "Jump to link" "L" #'ffap-menu
|
:desc "Jump to link" "L" #'ffap-menu
|
||||||
:desc "Jump list" "j" #'evil-show-jumps
|
:desc "Jump list" "j" #'evil-show-jumps
|
||||||
|
|
|
@ -15,9 +15,9 @@ PRED can either be a regexp string or a major mode symbol. PLIST may contain
|
||||||
these properties:
|
these properties:
|
||||||
|
|
||||||
:when FUNCTION
|
:when FUNCTION
|
||||||
Provides a secondary predicate. This function takes no arguments and is
|
Provides a secondary predicate. This function takes the filename as an
|
||||||
executed from within the target buffer. If it returns nil, this rule will be
|
argument and is executed from within the target buffer. If it returns nil,
|
||||||
skipped over.
|
this rule will be skipped over.
|
||||||
:trigger STRING|FUNCTION
|
:trigger STRING|FUNCTION
|
||||||
If a string, this is the yasnippet trigger keyword used to trigger the
|
If a string, this is the yasnippet trigger keyword used to trigger the
|
||||||
target snippet.
|
target snippet.
|
||||||
|
|
|
@ -299,7 +299,6 @@ to tide."
|
||||||
"e" #'skewer-html-eval-tag))
|
"e" #'skewer-html-eval-tag))
|
||||||
|
|
||||||
|
|
||||||
;;;###package npm-mode
|
|
||||||
(use-package! npm-mode
|
(use-package! npm-mode
|
||||||
:hook ((js-mode typescript-mode) . npm-mode)
|
:hook ((js-mode typescript-mode) . npm-mode)
|
||||||
:config
|
:config
|
||||||
|
|
|
@ -84,7 +84,7 @@ If it is an absolute path return `+org-capture-todo-file' verbatim."
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org-capture-notes-file ()
|
(defun +org-capture-notes-file ()
|
||||||
"Expand `+org-capture-notes-file' from `org-directory'.
|
"Expand `+org-capture-notes-file' from `org-directory'.
|
||||||
If it is an absolute path return `+org-capture-todo-file' verbatim."
|
If it is an absolute path return `+org-capture-notes-file' verbatim."
|
||||||
(expand-file-name +org-capture-notes-file org-directory))
|
(expand-file-name +org-capture-notes-file org-directory))
|
||||||
|
|
||||||
(defun +org--capture-local-root (path)
|
(defun +org--capture-local-root (path)
|
||||||
|
|
|
@ -22,7 +22,7 @@ headings as titles, and you have more freedom to place them wherever you like.")
|
||||||
(use-package! org-re-reveal
|
(use-package! org-re-reveal
|
||||||
:after ox
|
:after ox
|
||||||
:config
|
:config
|
||||||
(setq org-re-reveal-root (expand-file-name "../../" (locate-library "dist/reveal.js" t))
|
(setq org-re-reveal-root (concat "file://" (expand-file-name "../../" (locate-library "dist/reveal.js" t)))
|
||||||
org-re-reveal-revealjs-version "4"))
|
org-re-reveal-revealjs-version "4"))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -109,9 +109,7 @@ You should use `set-eshell-alias!' to change this.")
|
||||||
;; or configure `+eshell-aliases' via elisp.
|
;; or configure `+eshell-aliases' via elisp.
|
||||||
(advice-add #'eshell-write-aliases-list :override #'ignore)
|
(advice-add #'eshell-write-aliases-list :override #'ignore)
|
||||||
|
|
||||||
;; REVIEW In Emacs 27 and newer, waiting for esh-module is unnecessary.
|
(add-to-list 'eshell-modules-list 'eshell-tramp)
|
||||||
(after! esh-module
|
|
||||||
(add-to-list 'eshell-modules-list 'eshell-tramp))
|
|
||||||
|
|
||||||
;; Visual commands require a proper terminal. Eshell can't handle that, so
|
;; Visual commands require a proper terminal. Eshell can't handle that, so
|
||||||
;; it delegates these commands to a term buffer.
|
;; it delegates these commands to a term buffer.
|
||||||
|
|
|
@ -4,9 +4,14 @@
|
||||||
#+since: 21.12.0
|
#+since: 21.12.0
|
||||||
|
|
||||||
* Description :unfold:
|
* Description :unfold:
|
||||||
This module gives Emacs the ability to display and insert emojis (ASCII, Github
|
This module can redisplay ASCII/GitHub emoticon strings as corresponding Unicode
|
||||||
style, or unicode styles), as well as convert certain text patterns (e.g.
|
emoji. In addition, a completion command is provided to insert these strings as
|
||||||
=:smile:=) into emojis.
|
well as the typical Unicode representations.
|
||||||
|
|
||||||
|
Note: Emacs 29 provides [[https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29.1#n884][native support]] for inserting Unicode emojis. This module
|
||||||
|
only remains useful if you want ASCII/GitHub emoticon string
|
||||||
|
insertion/conversion or need PNG/ASCII emoji rendering on a system with limited
|
||||||
|
font configuration.
|
||||||
|
|
||||||
** Maintainers
|
** Maintainers
|
||||||
*This module needs a maintainer.* [[doom-contrib-maintainer:][Become a maintainer?]]
|
*This module needs a maintainer.* [[doom-contrib-maintainer:][Become a maintainer?]]
|
||||||
|
|
|
@ -148,7 +148,6 @@ the command buffer."
|
||||||
(advice-add #'evil-window-move-far-right :around #'+popup-save-a))
|
(advice-add #'evil-window-move-far-right :around #'+popup-save-a))
|
||||||
|
|
||||||
|
|
||||||
;;;###package help-mode
|
|
||||||
(after! help-mode
|
(after! help-mode
|
||||||
(defun +popup--switch-from-popup (location)
|
(defun +popup--switch-from-popup (location)
|
||||||
(let (origin enable-local-variables)
|
(let (origin enable-local-variables)
|
||||||
|
@ -254,7 +253,6 @@ the command buffer."
|
||||||
(apply fn args)))
|
(apply fn args)))
|
||||||
|
|
||||||
|
|
||||||
;;;###package org
|
|
||||||
(after! org
|
(after! org
|
||||||
(defadvice! +popup--suppress-delete-other-windows-a (fn &rest args)
|
(defadvice! +popup--suppress-delete-other-windows-a (fn &rest args)
|
||||||
"Org has a scorched-earth window management policy I'm not fond of. i.e. it
|
"Org has a scorched-earth window management policy I'm not fond of. i.e. it
|
||||||
|
@ -344,7 +342,6 @@ Ugh, such an ugly hack."
|
||||||
(+popup--init window nil))))
|
(+popup--init window nil))))
|
||||||
|
|
||||||
|
|
||||||
;;;###package pdf-tools
|
|
||||||
(after! pdf-tools
|
(after! pdf-tools
|
||||||
(setq tablist-context-window-display-action
|
(setq tablist-context-window-display-action
|
||||||
'((+popup-display-buffer-stacked-side-window-fn)
|
'((+popup-display-buffer-stacked-side-window-fn)
|
||||||
|
@ -382,7 +379,6 @@ Ugh, such an ugly hack."
|
||||||
(advice-add #'wgrep-finish-edit :after #'+popup-close-a))
|
(advice-add #'wgrep-finish-edit :after #'+popup-close-a))
|
||||||
|
|
||||||
|
|
||||||
;;;###package which-key
|
|
||||||
(after! which-key
|
(after! which-key
|
||||||
(when (eq which-key-popup-type 'side-window)
|
(when (eq which-key-popup-type 'side-window)
|
||||||
(setq which-key-popup-type 'custom
|
(setq which-key-popup-type 'custom
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue