Live data from Hacker News

916 Days of Emacs

sqrtminusone.xyz

121–130 of 309 posts

Re: 916 Days of Emacs

#121
post #95

Earlier quoted context omitted.

Maybe a Vim expert can help me out. I’ve used Vim for a long time, but never with any plugins, and only a few lines in my .vimrc. My problem is that the syntax highlighting, specifically for TypeScript is pretty bad. I have a regular expression (for parsing front matter) that seems to cause Vim’s syntax highlighting to go haywire (it stops and sometimes crashes). Is anyone aware of a way to get more reliable syntax h…

using lsp with typescript-language-server? most of the neovim setup scripts (lazyvim etc) get this set up automatically

An LSP seems overkill for syntax highlighting? This seems more like a treesitter thing.

(Mind you, I have no experience with TypeScript, just saying this as a general remark on what those components do.)

Re: 916 Days of Emacs

#122
post #52

Earlier quoted context omitted.

> There’s really nothing killer in Emacs 1. Org mode 2. Magit 3. Wdired 4. Synergy between various components (shameless plug: https://mbork.pl/2023-01-30_The_benefits_of_everything_being... )

1. Org mode - I will admit that I'm not a fan of org mode and find it to be oversold and another time waster for people who are already wasting time configuring their editors. I personally use vimwiki, there is a vim plugin for org mode. 2. Magit - Tim Pope is the pope of Vim plugins and fugitive is easily as good or better than Magit. I have never had any issue doing any sort of complex task in git or fixing conflic…

> I will admit that I'm not a fan of org mode and find it to be oversold and another time waster for people who are already wasting time configuring their editors. I personally use vimwiki, there is a vim plugin for org mode.

I actually use emacs solely for org-mode. I find editing single files and even larger projects to be more of a pain that it is worth, so I just use my custom vim to do that.

What keeps me with org mode and emacs is mostly bibliography management. I have emacs set up to read my Zotero directory, and with a keybinding I can insert a reference to a book or magazine or the such. Now, what is really great about this is that when I export the org file (usually to latex->pdf, but also occasionaly to HTML), it exports the references in the style that they need to be in (MLA, APA, Turabian, etc.) and creates a bibliography page at the end of the export with everything that I referenced.

I can also add notes to any references using org-roam, so that I have have annotated bibliographies quite easily.

If I could have something else that does just this, I would drop emacs in a heartbeat. But until I do find that, emacs and org-mode it is.

Re: 916 Days of Emacs

#123
post #106
post #72

Earlier quoted context omitted.

I used to, and I probably would if I had to work with remote files more often. But in my experience I found it faster to just build emacs on the remote server and run it as a daemon there, since all the machines I was working on remotely had /home on an NFS mount. TRAMP took just a little too long to load remote directories for my liking. But in case I am plopped in front of an unknown terminal/have to do something o…

Does that mean you have a nice setup for running emacs as a server on a remote machine and connecting via a local client? I've tried this a couple of times but it seems to be prohibitively awkward and I'm stuck with the idiosyncrasies of Tramp or even just saying in a vterm. I'd be very grateful if you (or anyone else) can explain how to do this.

I just run emacs on the remote server (inside tmux), emacs works great on the terminal, in fact, I don't use GUI emacs. code, orgmode, magit are just text.

Re: 916 Days of Emacs

#124
post #104

Earlier quoted context omitted.

When I was at the university and started programming on UNIX, the professor said we should try both emacs and vi and see which we like better, and provided links to some tutorials. I tried them both and liked vi. Emacs seemed slower. In my undergraduate wisdom, I deemed emacs to be "stupid" and went on with my life using vi. After I had been programming professionally for about ten years, I decided that my harsh judg…

Many people who use Emacs a lot make CapsLock an additional Ctrl. Using your left-hand little finger makes it trivial to use C-p, C-n, C-f, C-b as cursor keys.

I've always just used the palm of my hand. You can work a keyboard with more surfaces than just your fingertips.

Re: 916 Days of Emacs

#125
post #97
post #44

Earlier quoted context omitted.

That's 28k dollars to configure Emacs, if we assume 100 USD / hour...

By that argument, watching The Irishman costs 350 USD.

Odd that you chose The Irishman (2019) to evince the opportunity cost fallacy. The toll of that schnoozer can't adequately be measured in dollars.

Re: 916 Days of Emacs

#126

Actually, what's the fuss about Emacs being so good? I'm a hardcore vim user to the point that I've installed Vimium for browsers, use vim on my iPad as well. Someone please enlighten me with links, guides or just a comment as to what's in Emacs that makes it productive and special.

Plenty of google-able info to answer your question. But to wax poetic for a moment, you may think of vim as chess and emacs as baduk. You can learn chess quickly, and the game goes as deep as you're willing to go. Absorbing baduk takes significantly more time, but once you get it, it's like peering into another dimension.

> baduk

(for people who don't know it by this name: this is apparently the Korean name of the board game Go.)

Re: 916 Days of Emacs

#127

I've been a hardcore vi user pretty much my entire life, but I decided to force myself to spend a year using emacs a while back just to see what all the fuss was about. When the year was over and I "allowed" myself to return to vi, it was like a huge weight lifted off my shoulders... to this day I still don't see what the hype was about. On the plus side, though, I memorized the emacs cursor movement commands, which…

When I was at the university and started programming on UNIX, the professor said we should try both emacs and vi and see which we like better, and provided links to some tutorials. I tried them both and liked vi. Emacs seemed slower. In my undergraduate wisdom, I deemed emacs to be "stupid" and went on with my life using vi. After I had been programming professionally for about ten years, I decided that my harsh judg…

[flagged]

Re: 916 Days of Emacs

#128
post #122
post #52

Earlier quoted context omitted.

1. Org mode - I will admit that I'm not a fan of org mode and find it to be oversold and another time waster for people who are already wasting time configuring their editors. I personally use vimwiki, there is a vim plugin for org mode. 2. Magit - Tim Pope is the pope of Vim plugins and fugitive is easily as good or better than Magit. I have never had any issue doing any sort of complex task in git or fixing conflic…

> I will admit that I'm not a fan of org mode and find it to be oversold and another time waster for people who are already wasting time configuring their editors. I personally use vimwiki, there is a vim plugin for org mode. I actually use emacs solely for org-mode. I find editing single files and even larger projects to be more of a pain that it is worth, so I just use my custom vim to do that. What keeps me with o…

Same. I have try many outliners to irrationally avoid emacs but they all suck compared to org-mode.

Re: 916 Days of Emacs

#129

Earlier quoted context omitted.

I am surprised you didn’t use evil-mode to emulate the vim keybindings. Or was this a an attempt to use “pure” Emacs without packages and customization?

It sounds like they're not even aware that it was an option. Many people don't realize that emacs' default keybindings can be changed to be modal in exactly the same as vim, by using evil.

Sorry for the naive question, but if you're changing all your bindings to vim, then why use emacs at all? Is there any extra functional difference?

Re: 916 Days of Emacs

#130
post #95

Earlier quoted context omitted.

Maybe a Vim expert can help me out. I’ve used Vim for a long time, but never with any plugins, and only a few lines in my .vimrc. My problem is that the syntax highlighting, specifically for TypeScript is pretty bad. I have a regular expression (for parsing front matter) that seems to cause Vim’s syntax highlighting to go haywire (it stops and sometimes crashes). Is anyone aware of a way to get more reliable syntax h…

using lsp with typescript-language-server? most of the neovim setup scripts (lazyvim etc) get this set up automatically

Oh, my initial research (reading the Neovim docs) indicated that setting up Neovim would require a lot of manual configuration for getting an LSP working. I will give it another look, thanks!

Most blog posts I found seemed to assume you already had a gigantic custom config, plug-in manager, etc. I couldn’t find a “how to set up better highlighting and/or an LSP for people who know Vim but don’t know anything about configuration” guide.

Post reply on HN