commit e17ecba4b01ea63cbff989a1dee2c577755cf6bf parent e427e513e8642b2ea501b1a59bee64a414edc466 Author: Vincent Demeester <vincent@sbr.pm> Date: Wed, 19 Aug 2020 17:34:02 +0200 tools/emacs: configure tooltips Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-appearance.el | | | 20 | +++++++++++++++++--- |
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/tools/emacs/config/config-appearance.el b/tools/emacs/config/config-appearance.el @@ -188,16 +188,30 @@ questions. Else use completion to select the tab to switch to." (use-package face-remap :diminish buffer-face-mode ; the actual mode - :commands prot/variable-pitch-mode + :commands vde/variable-pitch-mode :config - (define-minor-mode prot/variable-pitch-mode + (define-minor-mode vde/variable-pitch-mode "Toggle `variable-pitch-mode', except for `prog-mode'." :init-value nil :global nil - (if prot/variable-pitch-mode + (if vde/variable-pitch-mode (unless (derived-mode-p 'prog-mode) (variable-pitch-mode 1)) (variable-pitch-mode -1)))) + +(use-package tooltip + :config + (setq tooltip-delay 0.5) + (setq tooltip-short-delay 0.5) + (setq x-gtk-use-system-tooltips nil) + (setq tooltip-frame-parameters + '((name . "tooltip") + (internal-border-width . 6) + (border-width . 0) + (no-special-glyphs . t))) + :hook (after-init-hook . tooltip-mode)) + + (provide 'config-appearance) ;;; config-appearance.el ends here