FirstLoveLife

u/FirstLoveLife







r/emacs•

Say that I have a running docker, which has some cpp files in it. I can use docker.el to open files in docker. I hope to use ccls for those cpp files:

(after! lsp-mode
  (lsp-register-client
   (make-lsp-client :new-connection (lsp-tramp-connection "/projects/github/ccls/Release/ccls")
                    :major-modes '(c++-mode)
                    :remote? t
                    :server-id 'ccls-docker))
  (lsp-register-client
   (make-lsp-client :new-connection (lsp-tramp-connection "/projects/github/ccls/Release/ccls")
                    :major-modes '(c-mode)
                    :remote? t
                    :server-id 'ccls-docker))
  )

A

20


r/emacs•
* A
...
** B
... 
*** C
... #cursor here

How to know the full name of C without moving cursor, is there any interactive function like org-current-closet-headline that can echo "C" in minibuffer?

54



r/emacs•

I try to manager all my tasks in ~/projects/org/*/*.org, but often forget to add TODO keyword in headline, so stuff org-agenda cannot see them. Of course, always use org-capture to add task can solve this problem, but if I'm just in my task.org, invoke org-capture is a little redundant.

14