TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A CEO's Guide to Emacs (2015)

364 点作者 prakashk超过 7 年前

33 条评论

bitexploder超过 7 年前
It is difficult to even describe a productive hand tuned to fit the individual Emails setup compared to standard.<p>Here are some of my favorite Emacs things:<p>Helm + Projectile. Helm will fuzzy complete almost anything in Emacs. Projectile is project management. Together get to any Git repo and file there in very quick. Helm is an option to compare to IDO. I rarely use IDO due to Helm.<p>Magit, widely regarded as a good Git UI. Using is believing. Better than command line or most GUIs for me.<p>Various editing nodes are good enough (Python, Lisp of course, Markdown).<p>Org mode is it&#x27;s own beast, but if you like outlines and productivity tools Org is very nice. I use it, not extensively. It holds my todos and meeting notes and makes it easy to ha e very complex notes in one doc.<p>Basic text editing. I think Vi has some things it does better than Emacs here, but it is still very powerful and rewards learning the finer details.<p>Realizing you are in a Lisp machine. A calculator is no further than your Emacs window. Learning to hack Lisp and elisp is its own reward.<p>I think the time spent learning it is worth it. I think the math checks out in terms of efficiency. I also know Emacs is not going anywhere. Same with Vi.<p>There is much more to it all, but these are things off the top of my head. There are many smaller things that connect up how I work via Emacs... But there is a lot to it.
评论 #15755193 未加载
评论 #15754781 未加载
评论 #15753885 未加载
评论 #15754758 未加载
评论 #15755041 未加载
评论 #15755249 未加载
评论 #15754119 未加载
评论 #15755893 未加载
评论 #15770832 未加载
评论 #15757598 未加载
nextos超过 7 年前
The first time I got introduced to Emacs, I hated it. Who would like to read email inside a text editor with non-standard keybindings?<p>I got it all wrong. It&#x27;s not an editor, it&#x27;s a text-mode virtual Lisp machine.<p>The Emacs ecosystem has matured a lot lately. It has two applications I adore. Org, something impossible to describe in a few words, and Magit, the perfect Git porcelain.<p>Plus it has 3 pretty darn good email clients (Notmuch, Gnus and Mu4e). And some great extras: Dired, Calc, Eshell, Erc, PDF Tools...<p>Everything is really well integrated. And if something doesn&#x27;t suit your needs, changing it is a few ELisp lines away.<p>My computer setup has become very simple: a tiling WM (XMonad), Emacs, Firefox, and a terminal (Urxvt).
评论 #15753720 未加载
评论 #15754154 未加载
评论 #15761888 未加载
评论 #15756096 未加载
geokon超过 7 年前
I only really enjoyed Emacs once I learned some ELisp (I think I had tried is 2 or 3 times before that). Honestly I find these guides pretty useless b&#x2F;c you can copy configs and hack together something without really understanding what you&#x27;re doing but you&#x27;ll eventually end up extremely frustrated and unable to work around the quirks and conflicts between configurations.<p>I know the people behind Emacs like to think the system as usable out-of-the-box but I think selling it like that is ultimately a disservice b&#x2F;c people end up underwhelmed and frustrated - never taking the time to learn ELisp. (the Emacs intro&#x2F;tutorial is just a &quot;welcome to this nano with annoying keybindings&quot;) I actually would challenge anyone to find someone who loves emacs and doesn&#x27;t know a bit of ELisp :)<p>Ultimately ELisp is really not <i>that</i> much work to learn - but the root issue seems to me that ELisp isn&#x27;t really a general purpose programming language and who wants to invest in learning a language you can&#x27;t use outside of your editor? It&#x27;s basically a DSL for a managing text and buffers.. It&#x27;d be way sexier to learn if it was a Racket or something<p>I also wrote a little annotated config intro (these are kinda more personal notes for my org&#x2F;git&#x2F;C++ workflow). It&#x27;s a little terse and to the point and isn&#x27;t trying to sell Emacs, but unlike most guides I tried to document what each lines in the config really means and help the reader learn how Emacs helps you discover more of Elisp as you go. <a href="https:&#x2F;&#x2F;geokon-gh.github.io&#x2F;.emacs.d&#x2F;" rel="nofollow">https:&#x2F;&#x2F;geokon-gh.github.io&#x2F;.emacs.d&#x2F;</a> Maybe someone will find it useful! (I&#x27;m by no means an emacs expert or Lisp guru.. so if there are problems, let me know please :) )
评论 #15754845 未加载
评论 #15756932 未加载
评论 #15755937 未加载
评论 #15756890 未加载
joshstella超过 7 年前
Author here. In reading this thread, I&#x27;m struck that most of the objections to emacs are both legitimate (as are the arguments for it) and focused on programmer-specific issues. Back when I wrote the original post, I was experimenting with using emacs as a CEO who writes little code these days, but was dealing with a maelstrom of disparate information and interruption. It&#x27;s been a very successful experiment, which I&#x27;ll document in a follow up post soon. Glad that it got some good conversations going!
pksadiq超过 7 年前
I&#x27;m mostly a C developer that spend most of my time inside Emacs.<p>I use ivy-mode instead of ido-mode, and avy instead of ace-jump. My setup includes yasnippet, flycheck, company, and ggtags mostly.<p>I have issues using the number keys. So I use a custom vi like mode, but heavily customized: Pressing spacebar results in &quot;_&quot; (&quot;-&quot; in #include), but intelligently. Double space results in &quot;-&gt;&quot;, &quot;..&quot; results in (|) (where | is the cursor or point) and &quot;,,&quot; results in &quot;=&quot;.<p>Pressing spacebar after &quot;(&quot; results in &quot;&amp;&quot;, then &quot;*&quot; (also &quot;!&quot; if just after &quot;if&quot; or &quot;while&quot;). And my capslock key is just another control key.<p>All the examples above are to be assumed without quotes.
评论 #15754443 未加载
krylon超过 7 年前
It took me a few years to undertand this, but Emacs is not really a text editor. It is a development and runtime environment for a programming language that is especially useful for building text editors - and more generally, text-related, interactive programs -, and it happens to come bundled with a variety of such programs. But there are many, many more to discover out there on the Internet. In fact, in recent versions, this, too has gotten easier, since Emacs now comes with a package manager. But it can also be an IRC client, an audio player, a web browser, a database frontend, ... the possibilities are practically endless.<p>And this is why I love Emacs. There are other editors out there that are good, too. Very good. But to me, Emacs takes the prize because it is so much more than an editor.
评论 #15754495 未加载
philsnow超过 7 年前
The tripping block that always gets me out of the emacs flow is integrating org-mode with things my co-workers use to communicate (lately that&#x27;s and Asana, Jira, and Quip, tomorrow who knows, it&#x27;s hard for me to dictate choice of issue trackers or wiki based on what integrates with my admittedly nutso setup).<p>Even if I were to get everything working, then if I were to ever switch jobs suddenly I&#x27;m back at square one again.<p>Emacs and org-mode are perfect, _if_ you don&#x27;t have to collaborate with anybody.
评论 #15755274 未加载
评论 #15754127 未加载
0xFFFE超过 7 年前
I started off with Emacs and a month a later tried Vi. I found Vi to be a better fit for me than Emacs and haven&#x27;t looked back since. I have huge respect for both editors, they both are much older than me :) I wish I could write something that people would find useful for years to come. Having said that, I love to jab(friendly) at Emacs users in my circle of friends and colleagues. Makes the conversation even more colourful with a bit of booze inside ;)
评论 #15755844 未加载
评论 #15753809 未加载
meta_AU超过 7 年前
In addition to all the other things mentioned (helm, projectile, magit, org), I&#x27;ve found org-ref and interleave great for managing my notes when I read papers or articles. Roughly, I save the PDF to disk and create an org node for it, then add the metadata like file location and bibtex info. Then I have emacs open the PDF and as I&#x27;m reading it I can press &#x27;i&#x27; to open a note on that page, and then close the note and keep reading.
评论 #15755295 未加载
s17n超过 7 年前
&quot;You can recognize emacs by the &#x27;mode line&#x27; near the bottom of the screen. If you see anybody using it, fire them immediately - they may be a good programmer but they&#x27;re going to cause more trouble than they are worth.&quot;
评论 #15759024 未加载
评论 #15760344 未加载
bluenose69超过 7 年前
This is a great article, not least because of the tangential comments (e.g. that impact test of bicycle-style tubing was weirdly fascinating). All that&#x27;s said about Emacs is true. I loved it for decades. And then my hand started cramping up because of the key chords. So I tried vim, and hated it for a few days, disliked it for a few more, and then started to like it. I&#x27;d never go back, now. Vim is certainly not as powerful as Emacs, and its macro language is disgusting, but for everyday work it&#x27;s fine. And I really like Vim&#x27;s &quot;grammar&quot; approach to describing complex actions, which makes semi-complex tasks into puzzles and not memory exercises. (For really complex tasks, though, there&#x27;s nothing quite so wonderful as Emacs with elisp ... so this comment may say more about the work I&#x27;m doing lately than these two editors.)
评论 #15757019 未加载
评论 #15756012 未加载
stevekemp超过 7 年前
If you write a small pre-processor (simple to do) you can store your emacs configuration file in a markdown file - allowing you to document all the settings neatly.<p>As I was reading this piece I was imagining that is what the author had done, as it is what I did too:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;skx&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.emacs.d&#x2F;init.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;skx&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.emacs.d&#x2F;init.md</a>
评论 #15755828 未加载
评论 #15754311 未加载
评论 #15754239 未加载
评论 #15754327 未加载
huntie超过 7 年前
Previous discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10642088" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10642088</a>
arca_vorago超过 7 年前
The pyramids were built with emacs. Everything else is drywall to me now. More work? Yes. Worth it though.<p>I like to say gnu+emacs is my OS, and linux is simply my kernel.<p>Org-mode alone would be worth it.
评论 #15754375 未加载
kovek超过 7 年前
Seems like lots of people here are sharing their experience with #emacs. I like it a lot, and think that it would be part of the ideal #workingset for me. However, I have never found a nice &#x27;jump-to-definition that worked for most languages I edit on emacs. I tried ggtags, ctags, pygments. I think I had trouble setting all of these up, and they would not work for many languages I was using. I have not found a good resource on how to get a nice &#x27;jump-to-definition set-up, and did look within the last 6 months. Maybe something new popped up?<p>Edit: I think I had trouble with Javascript, React and&#x2F;or Ruby.
评论 #15754093 未加载
评论 #15754289 未加载
评论 #15755258 未加载
评论 #15756362 未加载
评论 #15754218 未加载
scrumper超过 7 年前
Has anyone got any experience using Emacs with one of those mail tools and gmail with 2FA? I started playing with notmuch half-heartedly but it seemed to expect a local mail store, which is fine but I found myself bouncing between setup instructions for several different tools and I quickly gave up.<p>I would like to get it working; Apple Mail client is a bit slow on my laptop with a high volume, and I&#x27;m all about plaintext and keyboards. I&#x27;d happily use Emacs.
评论 #15767136 未加载
j7ake超过 7 年前
Has anybody quantified the efficiency gains from using emacs to do work rather than conventional means? Are there certain areas (e.g. Mail, todo, notes,calendar,scheduling) that gains more efficiency than others?
评论 #15756135 未加载
评论 #15756371 未加载
评论 #15755857 未加载
评论 #15758410 未加载
bribri超过 7 年前
I use org-mode and emacs (spacemacs) extensively at my job. I start my day by creating org-mode headers as todos, breaking down the tasks that I think will take longer than an hour, and later taking notes in outline mode as I do the tasks. I like planning a few days and checking in with my manager that I&#x27;m focusing my energy on the right things. I also use it to take excellent meeting notes and turn those notes into actionable tasks. People are impressed with my nicely formatted word docs that are just org files exported using pandoc.
tabeth超过 7 年前
When I tried emacs a few years ago I found the learning curve to be far more steep than vim at the time. After trying out <a href="https:&#x2F;&#x2F;vim-adventures.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vim-adventures.com&#x2F;</a> (no affiliation, just thought it was useful) I learned it in about 15 minutes.<p>Is there any equivalent for emacs? I&#x27;d love to get it another shot.
评论 #15753670 未加载
评论 #15754145 未加载
insulanian超过 7 年前
&gt; A 1933 steel bicycle that I still ride.<p>That&#x27;s an old bike.
delta1超过 7 年前
&gt; ... I also set Emacs to full screen. I&#x27;d like to do this on Windows as well, but Windows and Emacs don&#x27;t really love each other and it always ends up in some wonky state when I try this<p><pre><code> (add-to-list &#x27;default-frame-alist &#x27;(fullscreen . maximized)) </code></pre> Seems to work fine for me<p><a href="https:&#x2F;&#x2F;emacs.stackexchange.com&#x2F;a&#x2F;3008" rel="nofollow">https:&#x2F;&#x2F;emacs.stackexchange.com&#x2F;a&#x2F;3008</a>
评论 #15755951 未加载
lkhz超过 7 年前
I use ivy instead of helm and ido (tried both of them). Swiper and counsel are awesome for text search. company, rtags, anaconda are awesome for autocompletion and code navigation in C++ and Python. I use projectile for project management. gud is not very useful for running a debugger, so I use realgud which is much nicer.<p>Viva Emacs!
评论 #15769496 未加载
grogenaut超过 7 年前
personally this article would work way better for me with a set of animated gifs instead of turning into a wall of text. And I&#x27;d love to see his workflows for what he puts in his different orgs to help with context switching. as I get more senior I&#x27;m switching tasks even more and more.
评论 #15754352 未加载
评论 #15753999 未加载
esseti超过 7 年前
Would you advise me to get a try to EMACS? i mostly program in python (django), using docker, kubernetes and so on. I&#x27;m using an IDE.<p>On server i use vim (took me a while to understand the commands, but now i found it insanely clever on some comands)
评论 #15756340 未加载
garfieldnate超过 7 年前
Does anyone use it to type in languages that require an IME or specialized keyboard usage? I tried Emacs a while ago, but I was disappointed I couldn&#x27;t use my normal OS functionality for typing Japanese, Chinese, Korean, etc.
likelynew超过 7 年前
I primarily use vim for writing code. While I use a lot of standard plugins, I find many things that is not correct with them. I know it&#x27;s kind of a subjective question, but is moving to spacemacs worth it? Any experiences?
frabbit超过 7 年前
&gt; I keep my calendar, email, etc., on &gt; another desktop in OS X, which is hidden &gt; while I&#x27;m in Emacs,<p>Meh. To use his bicycle analogy, this is like someone putting Campagnolo components on a Trek CF frame.
RobertDeNiro超过 7 年前
Emacs is like Chinese to me, and truthfully to most developers I know. Is there a gentle intro somewhere? Most of what I&#x27;ve seen is just people throwing out package names with no real explanation.
评论 #15754303 未加载
评论 #15754863 未加载
评论 #15754113 未加载
评论 #15754394 未加载
评论 #15754795 未加载
评论 #15754217 未加载
kuharich超过 7 年前
Prior discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10642088" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10642088</a>
antoineMoPa超过 7 年前
I did not know about ido-mode, it always surprises me how much I can find new stuff in emacs every week!
评论 #15754313 未加载
评论 #15754156 未加载
megaman22超过 7 年前
I&#x27;ve never been able to get into graphical emacs, but emacs-nox has been my terminal editor of choice since college. Coming from a Windows background, vi(m) was too weird to get used to.
评论 #15758660 未加载
_sdegutis超过 7 年前
Emacs and the Atreus keyboard and xmonad etc. are white elephants.
评论 #15754368 未加载
评论 #15758743 未加载
评论 #15754151 未加载
评论 #15753631 未加载
Areading314超过 7 年前
Emacs is great, but is nearing its end. The package ecosystem is too fragile and lack of any kind of support leads to constant breaking and having to dig through elisp code&#x2F;config at inopportune times.<p>Core tools like a text editor need to be rock solid and depending on volunteer packages is generally not going to cut it vs. paying a small amount towards a supported product.<p>Full disclosure I recently gave up on Emacs&#x2F;Spacemacs after several years of using it for Python development (use Pycharm now), Org-mode (Use taskwarrior), and Magit (just use git + some aliases).