Fix the last commit
This commit is contained in:
25
init.el
25
init.el
@ -1888,6 +1888,19 @@ otherwise, call `bibtex-find-text'."
|
|||||||
(nthcdr 1 rules))))))
|
(nthcdr 1 rules))))))
|
||||||
|
|
||||||
;; c-ts-mode
|
;; c-ts-mode
|
||||||
|
(defun my/find-other-file (&optional in-other-window event)
|
||||||
|
"Like `ff-find-other-file', but respect configuration variables.
|
||||||
|
IN-OTHER-WINDOW and EVENT are the same as the original command."
|
||||||
|
(interactive (list current-prefix-arg last-nonmenu-event))
|
||||||
|
(ff-find-other-file in-other-window ff-ignore-include event))
|
||||||
|
(defun my/find-other-file-other-window (event)
|
||||||
|
"Like `ff-find-other-file-other-window', but respect config variables.
|
||||||
|
EVENT is the same as the original command."
|
||||||
|
(interactive (list last-nonmenu-event))
|
||||||
|
(my/find-other-file t event))
|
||||||
|
(keymap-global-set "<remap> <ff-find-other-file>" #'my/find-other-file)
|
||||||
|
(keymap-global-set "<remap> <ff-find-other-file-other-window>"
|
||||||
|
#'my/find-other-file-other-window)
|
||||||
(use-package c-ts-mode
|
(use-package c-ts-mode
|
||||||
:after evil
|
:after evil
|
||||||
:hook ((c-ts-mode c++-ts-mode) . my/eglot-if-trusted)
|
:hook ((c-ts-mode c++-ts-mode) . my/eglot-if-trusted)
|
||||||
@ -1896,14 +1909,14 @@ otherwise, call `bibtex-find-text'."
|
|||||||
(setopt ff-ignore-include t)
|
(setopt ff-ignore-include t)
|
||||||
:config
|
:config
|
||||||
(evil-define-key 'normal 'c-ts-mode-map
|
(evil-define-key 'normal 'c-ts-mode-map
|
||||||
"go" #'ff-find-other-file
|
"go" #'my/find-other-file
|
||||||
"gO" #'ff-find-other-file-other-window)
|
"gO" #'my/find-other-file-other-window)
|
||||||
(evil-define-key 'normal 'c++-ts-mode-map
|
(evil-define-key 'normal 'c++-ts-mode-map
|
||||||
"go" #'ff-find-other-file
|
"go" #'my/find-other-file
|
||||||
"gO" #'ff-find-other-file-other-window)
|
"gO" #'my/find-other-file-other-window)
|
||||||
(evil-define-key 'normal 'objc-mode-map
|
(evil-define-key 'normal 'objc-mode-map
|
||||||
"go" #'ff-find-other-file
|
"go" #'my/find-other-file
|
||||||
"gO" #'ff-find-other-file-other-window))
|
"gO" #'my/find-other-file-other-window))
|
||||||
|
|
||||||
;; GLSL
|
;; GLSL
|
||||||
(use-package glsl-mode)
|
(use-package glsl-mode)
|
||||||
|
Reference in New Issue
Block a user