1 line
4 KiB
Plaintext
1 line
4 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p><strong>NOTE: This is not a post about: It is right, it is wrong, I am a pro or a newbie, This should be, or not. Just sharing my experience and if you can help me, I would appreciated so much.</strong></p> <p><sup>God I need to specify.</sup></p> <p>Hi.</p> <p>After drop emacs and change to vim. I love so many features in vim, but feels kind of incomplete after using emacs. So, returned to emacs and try it again.</p> <p><a href="https://github.com/chriztheanvill/emacs.git">https://github.com/chriztheanvill/emacs.git</a></p> <p>Many points its fixed, but lack some:</p> <ul> <li>In C++ highlight are incomplete: functions, methods. <strong>[SOLVED] Installing tree sitter</strong></li> </ul> <p>​</p> <pre><code>(require 'tree-sitter) (require 'tree-sitter-hl) (require 'tree-sitter-langs) (require 'tree-sitter-debug) (require 'tree-sitter-query) (add-hook 'c-mode-hook #'tree-sitter-mode) (add-hook 'c++-mode-hook #'tree-sitter-mode) ;; (global-tree-sitter-mode) ;; Just the C++ files (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode) </code></pre> <ul> <li>For coding folding, use hs, but does not save the sate of the buffer. I tried desktop, but does not working.</li> <li>Is there a way to save some commands lines(bash) and change them on the go (sorry for the comparation). In vs code you have tasks.json. In Emacs I use task.el, but I have to close and open emacs to get the changes. <ul> <li>Example the command: cmake --build $workspaceFolder/build --config Debug --target all -- -j `nproc` ;</li> </ul></li> <li>I would like a feature that its on VS Code: <strong>[SOLVED and Fixed]</strong> <ul> <li>You have a bottom panel, that shows the info of lsp-ui-doc (for example). You can do it with lsp-describe-thing-at-point, but you need to use the shortcut (super + l + h + h). I would like that shows all the time. I have kind of this feature, but with flycheck for the errors and warnings.</li> </ul></li> </ul> <p>​</p> <pre><code>;; ;; [SOLVED And fixed] ;; ;; Doc at bottom (add-to-list 'display-buffer-alist `(,(rx bos "*lsp-help*" eos) (display-buffer-reuse-window display-buffer-in-side-window) (side . bottom) (reusable-frames . visible) (window-height . 0.23))) ;; ;; Doc ;; ;; Updates at hover (add-hook 'lsp-eldoc-hook (lambda () (sleep-for 0 500) ;; Fix it :D (lsp-describe-thing-at-point) )) </code></pre> <p>This is the VS Code: <a href="https://marketplace.visualstudio.com/items?itemName=bierner.docs-view">https://marketplace.visualstudio.com/items?itemName=bierner.docs-view</a></p> <p><a href="https://preview.redd.it/d6rcycwmxqn71.png?width=677&format=png&auto=webp&s=2adcb72a7b4a798c2b32b428efed61b877a20fc6">https://preview.redd.it/d6rcycwmxqn71.png?width=677&format=png&auto=webp&s=2adcb72a7b4a798c2b32b428efed61b877a20fc6</a></p> <p>Also many of my problems at start that now are solved, was:</p> <ul> <li>Nerdtree</li> <li>Centaur-tabs: If I do not use use-package, take a little time to start emacs.</li> <li>Helm: Crashes emacs so many times, and now I love ivy and counsel.</li> </ul> <p>Why I returned to Emacs?</p> <ul> <li>Coding in emacs is much faster than vscode. Yes, I love many features in vscode, but I feel faster in Emacs, because I only use the keyboard.</li> <li>Org. When I discoverd #+BEGIN_SRC C++, I am porting my markdown files to Org.</li> </ul> <p>Things that I still do not like:</p> <ul> <li>No fringes in terminal <ul> <li>Curiusly I find git-gutter, and it shows a mark "+" when you have changes in your code in terminal. Why flycheck can not do that?</li> </ul></li> </ul> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/lieddersturme"> /u/lieddersturme </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/pp1fmx/after_3_weeks_on_emacs_and_1_on_vim_i_kind_of/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/pp1fmx/after_3_weeks_on_emacs_and_1_on_vim_i_kind_of/">[comments]</a></span> |