hongyi-zhao

Results 160 comments of hongyi-zhao

I use the following minimal init file, `~/.emacs.d/init.lsp-latex`, to do the test: ```emacs-lisp ;$ emacs -q --load ~/.emacs.d/init.lsp-latex ;;Bootstrap straight (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) (bootstrap-version 5)) (unless...

I added the company relative code as below: ```emacs-lisp (use-package company) (add-hook 'after-init-hook 'global-company-mode) ``` But I still can't have an incremental drop-down candidate menu triggered at the point, and...

Based on your above instructions, I use the following testing code to start Emacs: ```emacs-lisp (use-package company) (add-hook 'after-init-hook 'global-company-mode) (use-package lsp-mode) (require 'lsp-mode) (use-package lsp-latex :straight (:host github :repo...

See below: ![image](https://user-images.githubusercontent.com/11155854/122882449-c9c61f80-d36e-11eb-9f3b-2c3f10d338f9.png) NB. Considering that I'm using `auctex`, the following adjustment has been adopted: ```emacs-lisp (with-eval-after-load "latex-mode" ;If you are using AUCTeX you might need to use TeX-mode-hook instead:...

`M-x lsp RET`: ![image](https://user-images.githubusercontent.com/11155854/122884338-9f756180-d370-11eb-98a4-a6714ecd3011.png) ![image](https://user-images.githubusercontent.com/11155854/122884379-ab612380-d370-11eb-8f8b-cb754be31a3b.png)

> Ensure that the tex file is not in blacklist. You can get blacklist by pasting (insert (pp (lsp-session-folders-blacklist (lsp-session)))) in *scratch* buffer and running C-x C-e with point after...

The currently used configurations is shown below: ```emacs-lisp (use-package company) (setq company-idle-delay 0) (setq company-minimum-prefix-length 1) (add-hook 'after-init-hook 'global-company-mode) (use-package lsp-mode) (require 'lsp-mode) (use-package lsp-latex :straight (:host github :repo "ROCKTAKEY/lsp-latex"))...

> Put (global-company-mode +1) to your init.el if you want to use company on all buffer, What's the meaning of `+1` used above? > or put (add-hook 'TeX-mode-hook #'company-mode) for...

> This is applicable for all minor-modes. Why isn't it applicable for all major-modes? > About second argument of add-hook, we should pass function, Thank you, I confirmed it with...

> 2\. Ensure that the tex file is in project. **_In the tex file_**, push `M-:`, paste below code and send RET. When "Not in the project" is messaged, the...