Better terminal support
This commit is contained in:
parent
ecabd37e3e
commit
667851fbea
17
init.el
17
init.el
@ -49,6 +49,9 @@
|
|||||||
(describe-symbol (cadr form))
|
(describe-symbol (cadr form))
|
||||||
(describe-symbol form))))
|
(describe-symbol form))))
|
||||||
|
|
||||||
|
;; Terminal mouse support
|
||||||
|
(xterm-mouse-mode 1)
|
||||||
|
|
||||||
;; Make show paren instant
|
;; Make show paren instant
|
||||||
(setq show-paren-delay 0)
|
(setq show-paren-delay 0)
|
||||||
(show-paren-mode 1)
|
(show-paren-mode 1)
|
||||||
@ -121,6 +124,9 @@
|
|||||||
(use-package evil-surround
|
(use-package evil-surround
|
||||||
:config
|
:config
|
||||||
(global-evil-surround-mode 1))
|
(global-evil-surround-mode 1))
|
||||||
|
(use-package evil-terminal-cursor-changer
|
||||||
|
:config
|
||||||
|
(evil-terminal-cursor-changer-activate))
|
||||||
|
|
||||||
;; which-key
|
;; which-key
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
@ -289,11 +295,14 @@ visual states."
|
|||||||
(setq xref-show-xrefs-function #'consult-xref
|
(setq xref-show-xrefs-function #'consult-xref
|
||||||
xref-show-definitions-function #'consult-xref))
|
xref-show-definitions-function #'consult-xref))
|
||||||
|
|
||||||
|
;; popup.el
|
||||||
|
(use-package popup)
|
||||||
|
|
||||||
;; flymake
|
;; flymake
|
||||||
(use-package flymake
|
(use-package flymake
|
||||||
:bind (:map flymake-mode-map
|
:bind (:map flymake-mode-map
|
||||||
("C-c e" . my/flymake-show-diagnostic-at-point)
|
("C-c e" . my/flymake-show-diagnostic-at-point)
|
||||||
("C-c E" . consult-flymake))
|
("C-c C-e" . consult-flymake))
|
||||||
:hook (emacs-lisp-mode . my/enable-flymake-mode)
|
:hook (emacs-lisp-mode . my/enable-flymake-mode)
|
||||||
:init
|
:init
|
||||||
(defun my/flymake-show-diagnostic-at-point ()
|
(defun my/flymake-show-diagnostic-at-point ()
|
||||||
@ -302,11 +311,7 @@ visual states."
|
|||||||
(diag (and flymake-mode
|
(diag (and flymake-mode
|
||||||
(get-char-property pos 'flymake-diagnostic)))
|
(get-char-property pos 'flymake-diagnostic)))
|
||||||
(message (flymake--diag-text diag)))
|
(message (flymake--diag-text diag)))
|
||||||
(progn
|
(popup-tip message)))
|
||||||
;; show the frame
|
|
||||||
)))
|
|
||||||
(defun my/-flymake-show-diagnostic-hide-frame ()
|
|
||||||
(make-frame-invisible my/-flymake-show-diagnostic-frame))
|
|
||||||
(defun my/enable-flymake-mode ()
|
(defun my/enable-flymake-mode ()
|
||||||
(flymake-mode 1)))
|
(flymake-mode 1)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user