about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org45
1 files changed, 45 insertions, 0 deletions
diff --git a/config.org b/config.org index 1b81d0d..5e4021b 100644 --- a/config.org +++ b/config.org
@@ -1163,6 +1163,42 @@ For right now, I’m /just/ using Anzu – I don’t like parts of =isearch= but
1163(global-aggressive-indent-mode +1) 1163(global-aggressive-indent-mode +1)
1164#+END_SRC 1164#+END_SRC
1165 1165
1166** Completion
1167
1168 #+begin_src emacs-lisp
1169 (straight-use-package 'company)
1170
1171 (add-hook 'prog-mode-hook #'company-mode)
1172
1173 (cuss company-idle-delay 0.1
1174 "Show company sooner.")
1175 (cuss company-minimum-prefix-length 3
1176 "Don't try to complete short words.")
1177
1178 (with-eval-after-load 'company
1179 (define-key company-active-map (kbd "C-n")
1180 (lambda () (interactive) (company-complete-common-or-cycle +1)))
1181 (define-key company-active-map (kbd "C-p")
1182 (lambda () (interactive) (company-complete-common-or-cycle -1))))
1183 #+end_src
1184
1185*** Give it a frame and better help
1186
1187 #+begin_src emacs-lisp
1188 (straight-use-package 'company-posframe)
1189
1190 (with-eval-after-load 'company
1191 (company-posframe-mode +1))
1192 #+end_src
1193
1194*** Prescient integration
1195
1196 #+begin_src emacs-lisp
1197 (straight-use-package 'company-prescient)
1198
1199 (add-hook 'company-mode-hook #'company-prescient-mode)
1200 #+end_src
1201
1166** Language-specific packages 1202** Language-specific packages
1167 1203
1168*** Emacs lisp 1204*** Emacs lisp
@@ -1537,6 +1573,15 @@ I’ve put org mode under Applications, as opposed to Writing, because it’s m
1537 (define-key beancount-mode-map (kbd "M-p") #'outline-previous-visible-heading) 1573 (define-key beancount-mode-map (kbd "M-p") #'outline-previous-visible-heading)
1538#+end_src 1574#+end_src
1539 1575
1576*** Company integration with company-ledger
1577
1578 #+begin_src emacs-lisp
1579 (straight-use-package 'company-ledger)
1580
1581 (with-eval-after-load 'company
1582 (add-to-list 'company-backends 'company-ledger))
1583 #+end_src
1584
1540** PDF Tools 1585** PDF Tools
1541 1586
1542I’m only enabling this at home for now, since it requires building stuff. 1587I’m only enabling this at home for now, since it requires building stuff.