소스 검색

Add lsp mode back in, plus smog

Colin Powell 5 년 전
부모
커밋
52753d5618
3개의 변경된 파일16개의 추가작업 그리고 14개의 파일을 삭제
  1. 4 0
      emacs/.config/doom/config.el
  2. 11 11
      emacs/.config/doom/init.el
  3. 1 3
      emacs/.config/doom/packages.el

+ 4 - 0
emacs/.config/doom/config.el

@@ -85,6 +85,10 @@
 (after! org-alert-mode
   (setq alert-default-style 'libnotify))
 
+;; enable smog writing analysis
+(use-package smog
+  :config (setq smog-command "style -L en"))
+
 ;;
 ;; Modules
 

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

@@ -82,7 +82,7 @@
        gist              ; interacting with github gists
        (lookup           ; helps you navigate your code and documentation
         +docsets)        ; ...or in Dash docsets locally
-       ;;lsp
+       lsp
        ;;macos             ; MacOS-specific commands
        magit             ; a git porcelain for Emacs
        make              ; run make tasks from Emacs
@@ -99,28 +99,28 @@
        ;;agda              ; types of types of types of types...
        ;;assembly          ; assembly for fun or debugging
        ;;cc                ; C/C++/Obj-C madness
-       clojure             ; java with a lisp
+       ;;clojure             ; java with a lisp
        ;;common-lisp       ; if you've seen one lisp, you've seen them all
        ;;coq               ; proofs-as-programs
        crystal             ; ruby at the speed of c
        ;;csharp            ; unity, .NET, and mono shenanigans
        data                ; config/data formats
        ;;erlang            ; an elegant language for a more civilized age
-       elixir              ; erlang done right
+       (elixir +lsp)       ; erlang done right
        elm                 ; care for a cup of TEA?
        emacs-lisp          ; drown in parentheses
        ;;ess               ; emacs speaks statistics
        ;;fsharp            ; ML stands for Microsoft's Language
-       go                  ; the hipster dialect
+       (go +lsp)           ; the hipster dialect
        ;;(haskell +intero) ; a language that's lazier than I am
        ;;hy                ; readability of scheme w/ speed of python
        ;;idris             ;
        ;;(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
-       ledger            ; an accounting system in Emacs
+       ledger              ; an accounting system in Emacs
        ;;lua               ; one-based indices? one-based indices
        markdown            ; writing docs for people to ignore
        nim                 ; python + lisp at the speed of c
@@ -140,13 +140,13 @@
        ;;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
-       ruby                ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
-       rust                ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
-       scala               ; java, but good
+       (ruby +lsp)         ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
+       (rust +lsp)         ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
+       (scala +lsp)        ; java, but good
        scheme              ; a fully conniving family of lisps
        (sh +fish)          ; she sells (ba|z|fi)sh shells on the C xor
        ;;solidity          ; do you need a blockchain? No.
@@ -165,7 +165,7 @@
        ;; should be loaded late.
        :app
        ;;calendar
-       ;;irc               ; how neckbeards socialize
+       irc               ; how neckbeards socialize
        (rss +org)        ; emacs as an RSS reader
        ;;twitter           ; twitter client https://twitter.com/vnought
 

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

@@ -20,9 +20,6 @@
   :recipe (:host github
            :repo "Fuco1/justify-kp"))
 
-;; eglot instead of lsp
-(package! eglot)
-
 ;; python stuffs
 (package! w3m)
 (package! blacken)
@@ -63,6 +60,7 @@
 (package! kaolin-themes)
 (package! magit-circleci)
 (package! nyan-mode)
+(package! smog)
 
 ; provides typographical replacements
 (package! typo)