fixing org roam and adding eglot instead of lsp-mode

This commit is contained in:
Chris Cochrun 2022-05-21 06:34:08 -05:00
parent 941d688f91
commit fdbcc61ee5
2 changed files with 30 additions and 57 deletions

View file

@ -633,8 +633,7 @@ Part of this config includes some special capture templates for my work as a you
'((sequence "TODO(t)" "PROJ(p)" "STRT(s)" "WAIT(w)" "HOLD(h)" "|" "DONE(d)" "CNCL(c)")
(sequence "[ ](T)" "[-](S)" "[?](W)" "|" "[X](D)"))
org-agenda-files
'("/home/chris/org/todo/inbox.org"
"/home/chris/org/todo/notes.org"
'("/home/chris/org/todo/notes.org"
"/home/chris/org/repetition.org"
"/home/chris/org/tfc_plans.org"
"/home/chris/org/ministry_team.org"
@ -810,7 +809,7 @@ We also need to setup some capture templates to use some specific setups with my
org-roam-capture-templates
'(("d" "default" plain "%?"
:if-new (file+head "${slug}.org"
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\nj ")
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n * %?")
:unnarrowed t)
("b" "bible" plain "%?"
:if-new (file+head "${slug}.org"
@ -824,7 +823,10 @@ We also need to setup some capture templates to use some specific setups with my
'(("d" "daily" plain #'org-roam-capture--get-point ""
:immediate-finish t
:file-name "%<%Y-%m-%d>"
:head "#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?")
:head "#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?"
:if-new (file+head "%<%Y-%m-%d>.org"
"#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?")
)
("b" "biblical daily" plain #'org-roam-capture--get-point ""
:immediate-finish t
:file-name "%<%Y-%m-%d>-bib"
@ -1912,7 +1914,7 @@ I've been transitioning more of my OS to NixOS. Let's get =nix-mode= working.
*** LSP
LSP is useful...
#+begin_src emacs-lisp
#+begin_src emacs-lisp :tangle no
(use-package lsp-mode
:commands (lsp lsp-deferred)
:custom
@ -1928,7 +1930,8 @@ LSP is useful...
:config
(setq lsp-lens-enable t
lsp-signature-auto-activate nil
read-process-output-max (* 1024 1024))
read-process-output-max (* 1024 1024)
lsp-clangd-binary-path "/run/current-system/sw/bin/clangd")
(lsp-enable-which-key-integration t)
(add-to-list 'lsp-language-id-configuration '(qml-mode . "qml"))
(lsp-register-client
@ -1946,6 +1949,18 @@ LSP is useful...
(use-package lsp-treemacs
:after lsp)
(use-package consult-lsp
:after lsp)
#+end_src
*** Eglot
Let's give eglot a try.
#+begin_src emacs-lisp
(use-package eglot
:commands eglot
:hook
(c++-mode . eglot))
#+end_src
*** Fennel