From 2cc77edb54c0360532d13f5e5bfac06cce3c5ada Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 3 Jun 2023 19:57:10 +0300 Subject: emacs: update dev essentials Bind `xref-find-definitions` and update company-mode configuration --- emacs.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'emacs.org') diff --git a/emacs.org b/emacs.org index 9f1423a..0ee1358 100755 --- a/emacs.org +++ b/emacs.org @@ -515,13 +515,16 @@ Fonts and basic appearance settings for each device #+begin_src emacs-lisp (electric-pair-mode 1) (global-flycheck-mode) + (global-set-key (kbd "M-.") 'xref-find-definitions) (require 'company) (add-hook 'after-init-hook 'global-company-mode) (define-key company-active-map (kbd "TAB") 'company-indent-or-complete-common) + (setq company-idle-delay + (lambda () (if (company-in-string-or-comment) nil 0.0))) (require 'company-box) - (add-hook 'company-mode 'company-box-mode) + (add-hook 'company-mode-hook 'company-box-mode) (require 'dap-mode) (dap-ui-mode) -- cgit v1.2.3