summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-04-30 09:24:21 +0300
committerThanos Apollo <[email protected]>2023-04-30 09:24:21 +0300
commit2ff3f4c2698f23a2ef6d89f21d18883f5384388b (patch)
tree3a7cebf42d2cbe9ae838d4f8d45af2c91c3b7a6c
parent25680a690101ff517b418cc27389a24dd89fd6f5 (diff)
emacs: enable global-company-mode
-rw-r--r--.emacs.d/init.el10
-rwxr-xr-xorg/emacs.org42
2 files changed, 28 insertions, 24 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index f2026a2..13a2be9 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -530,12 +530,14 @@ Contains the list of packages that need to be installed.")
:after lsp-mode
:hook (lsp-mode . company-mode)
:bind (:map company-active-map
- ("<tab>" . company-complete-selection))
- (:map lsp-mode-map
- ("<tab>" . company-indent-or-complete-common))
+ ("<tab>" . company-complete-selection))
+ (:map lsp-mode-map
+ ("<tab>" . company-indent-or-complete-common))
:custom
(company-minimum-prefix-length 1)
- (company-idle-delay 0.0))
+ (company-idle-delay 0.0)
+ :config
+ (setq global-company-mode t))
(use-package dap-mode
:custom
diff --git a/org/emacs.org b/org/emacs.org
index 84dd09d..acf7447 100755
--- a/org/emacs.org
+++ b/org/emacs.org
@@ -593,28 +593,30 @@ Hook with ~dired-mode~
* Programming
** Essentials
#+begin_src emacs-lisp
-(electric-pair-mode 1)
-(global-flycheck-mode)
-
-(use-package company
- :after lsp-mode
- :hook (lsp-mode . company-mode)
- :bind (:map company-active-map
- ("<tab>" . company-complete-selection))
- (:map lsp-mode-map
- ("<tab>" . company-indent-or-complete-common))
- :custom
- (company-minimum-prefix-length 1)
- (company-idle-delay 0.0))
+ (electric-pair-mode 1)
+ (global-flycheck-mode)
+
+ (use-package company
+ :after lsp-mode
+ :hook (lsp-mode . company-mode)
+ :bind (:map company-active-map
+ ("<tab>" . company-complete-selection))
+ (:map lsp-mode-map
+ ("<tab>" . company-indent-or-complete-common))
+ :custom
+ (company-minimum-prefix-length 1)
+ (company-idle-delay 0.0)
+ :config
+ (setq global-company-mode t))
-(use-package dap-mode
- :custom
- (lsp-enable-dap-auto-configure nil)
- :config
- (dap-ui-mode 1))
+ (use-package dap-mode
+ :custom
+ (lsp-enable-dap-auto-configure nil)
+ :config
+ (dap-ui-mode 1))
-(use-package company-box
- :hook (company-mode . company-box-mode))
+ (use-package company-box
+ :hook (company-mode . company-box-mode))
#+end_src
*** Magit
#+begin_src emacs-lisp