summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/emacs.org5
-rw-r--r--.emacs.d/init.el27
2 files changed, 19 insertions, 13 deletions
diff --git a/.emacs.d/emacs.org b/.emacs.d/emacs.org
index c11cc42..8f9132f 100644
--- a/.emacs.d/emacs.org
+++ b/.emacs.d/emacs.org
@@ -358,6 +358,9 @@ Add some text
*** IDE Features | lsp-mode
**** lsp-mode
#+begin_src emacs-lisp
+;;instal flyckeck
+(use-package flyckeck)
+;;setup lsp-mode
(defun apollo/lsp-mode-setup ()
(setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols))
(lsp-headerline-breadcrumb-mode))
@@ -399,6 +402,7 @@ Add some text
"d" '(dap-hydra t :wk "debugger")))
#+end_src
*** Javascript
++ For javascript, automatic installation guide [[https://emacs-lsp.github.io/lsp-mode/page/lsp-typescript/][here]]
#+begin_src emacs-lisp
#+end_src
*** TypeScript
@@ -410,7 +414,6 @@ Add some text
(setq typescript-indent-level 2))
#+end_src
*** Python
-If pyls and pylsp are not on path, do *M-x setenv RET PATH* in emacs, and then set enviroment variable e.g */home/apollo/.local/bin*
#+begin_src emacs-lisp
(use-package python-mode
:ensure t
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 508c8e6..787443d 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -299,18 +299,21 @@
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'apollo/org-babel-tangle-config)))
-(defun apollo/lsp-mode-setup ()
- (setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols))
- (lsp-headerline-breadcrumb-mode))
-
-(use-package lsp-mode
- :commands (lsp lsp-deferred)
- :hook (lsp-mode . apollo/lsp-mode-setup)
- :init
- (setq lsp-keymap-prefix "C-c l") ;; Or 'C-l', 's-l'
- :config
- (lsp-enable-which-key-integration t)
- )
+;;instal flyckeck
+(use-package flyckeck)
+;;setup lsp-mode
+ (defun apollo/lsp-mode-setup ()
+ (setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols))
+ (lsp-headerline-breadcrumb-mode))
+
+ (use-package lsp-mode
+ :commands (lsp lsp-deferred)
+ :hook (lsp-mode . apollo/lsp-mode-setup)
+ :init
+ (setq lsp-keymap-prefix "C-c l") ;; Or 'C-l', 's-l'
+ :config
+ (lsp-enable-which-key-integration t)
+ )
(use-package lsp-ui
:hook (lsp-mode . lsp-ui-mode)