General, minor refactors
This commit is contained in:
parent
3271cd3a54
commit
960d756b47
5 changed files with 16 additions and 15 deletions
|
@ -69,9 +69,9 @@
|
|||
:unless (featurep! +lsp)
|
||||
:hook (rustic-mode . racer-mode)
|
||||
:init
|
||||
;; Fix #2132: `racer' depends on `rust-mode', which tries to modify
|
||||
;; `auto-mode-alist'. We make extra sure that doesn't stick, especially when a
|
||||
;; buffer is reverted, as it is after rustfmt is done wiht it.
|
||||
;; HACK Fix #2132: `racer' depends on `rust-mode', which tries to modify
|
||||
;; `auto-mode-alist'. We make extra sure that doesn't stick, especially
|
||||
;; when a buffer is reverted, as it is after rustfmt is done wiht it.
|
||||
(after! rust-mode
|
||||
(setq auto-mode-alist (delete '("\\.rs\\'" . rust-mode) auto-mode-alist)))
|
||||
:config
|
||||
|
|
|
@ -37,8 +37,8 @@ to this commmand."
|
|||
(let ((orig-buffer (current-buffer)))
|
||||
(quit-window)
|
||||
(when (and (eq orig-buffer (current-buffer))
|
||||
(+popup-window-p))
|
||||
(+popup/close))))
|
||||
(+popup-buffer-p))
|
||||
(+popup/close nil 'force))))
|
||||
(global-set-key [remap quit-window] #'+popup/quit-window)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue