Przeglądaj źródła

[emacs] Trying lsp again, sigh

Colin Powell 4 lat temu
rodzic
commit
80ea1bff35

+ 1 - 1
emacs/.config/doom/config.org

@@ -338,7 +338,7 @@ Handful of fun aliases to make working in Eshell almost like a /real/ shell :smi
 * Coding
 I once used LSP, but Emacs lsp-mode is flaky as hell. It works sometimes, but other times causes pyls to thrash the CPU. I don't need that, not when Eglot exists. This just makes sure Eglot runs in `python-mode`
 #+BEGIN_SRC emacs-lisp
-(add-hook 'python-mode-hook 'eglot-ensure)
+;(add-hook 'python-mode-hook 'eglot-ensure)
 #+END_SRC
 * Mastodon
 There's gotta be a way to get the token out of password-store for this.

+ 5 - 5
emacs/.config/doom/init.el

@@ -91,7 +91,7 @@
        (eval +overlay)     ; run code, run (also, repls)
        gist              ; interacting with github gists
        lookup              ; navigate your code and its documentation
-       ;;lsp
+       lsp
        ;;macos             ; MacOS-specific commands
        magit             ; a git porcelain for Emacs
        make              ; run make tasks from Emacs
@@ -123,13 +123,13 @@
        ;;fsharp           ; ML stands for Microsoft's Language
        ;;fstar             ; (dependent) types and (monadic) effects and Z3
        ;;gdscript          ; the language you waited for
-       go                  ; the hipster dialect
+       (go +lsp)                  ; the hipster dialect
        ;;(haskell +dante)  ; a language that's lazier than I am
        ;;hy                ; readability of scheme w/ speed of python
        ;;idris             ;
        ;;json              ; At least it ain't XML
        ;;(java +meghanada) ; the poster child for carpal tunnel syndrome
-       javascript          ; all(hope(abandon(ye(who(enter(here))))))
+       (javascript +lsp)          ; all(hope(abandon(ye(who(enter(here))))))
        ;;julia             ; a better, faster MATLAB
        ;;kotlin            ; a better, slicker Java(Script)
        ;;latex             ; writing papers in Emacs has never been so fun
@@ -154,12 +154,12 @@
        ;;php               ; perl's insecure younger brother
        plantuml            ; diagrams for confusing people more
        ;;purescript        ; javascript, but functional
-       python              ; beautiful is better than ugly
+       (python +lsp)              ; beautiful is better than ugly
        ;;qt                ; the 'cutest' gui framework ever
        ;;racket            ; a DSL for DSLs
        rest                ; Emacs as a REST client
        rst                 ; ReST in peace
-       (ruby +rails)       ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
+       (ruby +rails +lsp)       ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
        ;;rust              ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
        ;;scala             ; java, but good
        ;;scheme            ; a fully conniving family of lisps

+ 1 - 1
emacs/.config/doom/packages.el

@@ -22,7 +22,7 @@
           :repo "l3kn/org-fc"
           :files (:defaults "awk" "demo.org")))
 
-(package! eglot)
+;(package! eglot)
 
 ;; python stuffs
 (package! blacken)