3 packages for Emacs beginners
Trying out Emacs
I've been using Emacs for 1 year and 8 months(ever since I become a developer) and I think Emacs is an awesome editor. Although people may feel it's not so friendly for beginners who are unfamiliar with such kind of old editor(indeed Emacs is more than 40-year-old ), I'll say no pain no gain. Not only your coding efficiency will be improved, but also complexities for workflows such as Deployment will be tremendous
Here I'm going to introduce some of my favorite packages in Emacs. You can enjoy them without having a good knowledge of Lisp.
Magit
Magit is a great interface for git. It helps me get rid of the long-heavy-difficult git commands.
install
Magit is a great interface for git. It helps me get rid of the long-heavy-difficult git commands.
install
M-x package-refresh-contents RET
M-x package-install RET magit RET
usage
You can check the usages by
M-x magit-status
to enter the status buffer, then h
to see the key-bindings for git commands.For example, if you want to do a cherry-pick, it really easy in Magit:
M-x magit-status
A
, you'll buffer with cherry-pick subcommands like this:A
, it'll ask for the commit id to be picked:RET
If you want to view the raw git commands,
M-x magit-process-buffer
. There are records for each git command and its status done in Magit.lsp-mode
Before using lsp-mode
, I was using GTag and CTag for C++ development. I'm forced to switch to lsp because I started to develop in Rust and lsp appears as the only reliable code navigation plugin(at least for Emacs), wh out far beyond my expectation.
install
I've had a painful time to get lsp-mode
installed for various reasons.
M-x package-install RET lsp-mode RET
usage
lsp-find-definition
is one of the most impressive features is code navigation. Take Rust for example, not only within the crate, but also the external crate, which is really helpful because you don't need the document in browser. It'll take you to the source code directly. M-x package-install RET flycheck RET
counsel-tramp
tramp
a remote file editing package for Emacs which I heavily rely on when edit config files on servers. But please take care when you operate as sudo
.
install
M-x package-install counsel-tramp
usage
~/.ssh/config
M-x counsel-tramp
/ssh:test-hostname1:
or /ssh:test-hostname1|sudo:root@test-hostname1:/
test-hostname1
on your local Emacs. Conclusion
There are many other excellent packages I haven't introduced, maybe I'll introduce more of them in other posts.
magit
: a must-have mode if you use git in your workflow. lsp-mode
: provide easy-to-use code navigation, real-time diagnostics, formatting etc. counsel-tramp
: a great tool for editing remote files. Reference
이 문제에 관하여(3 packages for Emacs beginners), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/wangya_eecs/items/388416bde436c078a774텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)