emacs/var/elfeed/db/data/ee/ee53974fa38e056d492123de5870a6143b6f97f6
2022-01-03 12:49:32 -06:00

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>&#x200B;</p> <pre><code>(require &#39;tree-sitter) (require &#39;tree-sitter-hl) (require &#39;tree-sitter-langs) (require &#39;tree-sitter-debug) (require &#39;tree-sitter-query) (add-hook &#39;c-mode-hook #&#39;tree-sitter-mode) (add-hook &#39;c++-mode-hook #&#39;tree-sitter-mode) ;; (global-tree-sitter-mode) ;; Just the C++ files (add-hook &#39;tree-sitter-after-on-hook #&#39;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>&#8203;</p> <pre><code>;; ;; [SOLVED And fixed] ;; ;; Doc at bottom (add-to-list &#39;display-buffer-alist `(,(rx bos &quot;*lsp-help*&quot; 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 &#39;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&amp;format=png&amp;auto=webp&amp;s=2adcb72a7b4a798c2b32b428efed61b877a20fc6">https://preview.redd.it/d6rcycwmxqn71.png?width=677&amp;format=png&amp;auto=webp&amp;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 &quot;+&quot; when you have changes in your code in terminal. Why flycheck can not do that?</li> </ul></li> </ul> </div><!-- SC_ON --> &#32; submitted by &#32; <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> &#32; <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>