mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
Fix for exwm issue searching
This commit is contained in:
parent
0782cfb325
commit
b2da3e3b88
1 changed files with 21 additions and 0 deletions
|
|
@ -190,3 +190,24 @@
|
|||
(shell-command "emacs & disown")
|
||||
(kill-emacs))))
|
||||
#+end_src
|
||||
* exwm fix
|
||||
#+begin_src emacs-lisp
|
||||
(defun my/exwm-input--fake-last-command ()
|
||||
"Fool some packages into thinking there is a change in the buffer."
|
||||
(setq last-command #'exwm-input--noop)
|
||||
(condition-case hook-error
|
||||
(progn
|
||||
(run-hooks 'pre-command-hook)
|
||||
(run-hooks 'post-command-hook))
|
||||
((error)
|
||||
(exwm--log "Error occurred while running command hooks: %s\n\nBacktrace:\n\n%s"
|
||||
hook-error
|
||||
(with-temp-buffer
|
||||
(setq-local standard-output (current-buffer))
|
||||
(backtrace)
|
||||
(buffer-string))))))
|
||||
|
||||
(advice-add #'exwm-input--fake-last-command
|
||||
:override
|
||||
#'my/exwm-input--fake-last-command)
|
||||
#+end_src
|
||||
|
|
|
|||
Loading…
Reference in a new issue