summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-06-03 19:57:10 +0300
committerThanos Apollo <[email protected]>2023-06-03 19:57:10 +0300
commit2cc77edb54c0360532d13f5e5bfac06cce3c5ada (patch)
treea7c90c479bccc045cef9d7be80ecd7939d6462fa
parentffe91ad22f52a10fc0c2d36161e9b193b953cebd (diff)
emacs: update dev essentials
Bind `xref-find-definitions` and update company-mode configuration
-rwxr-xr-xemacs.org5
1 files changed, 4 insertions, 1 deletions
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)