Live data from Hacker News

'Using Emacs' Series

cestlaz.github.io

51–60 of 106 posts

Re: 'Using Emacs' Series

#51
post #20
post #12

What is the best way to reduce pain from using ctrl with pinky finger? (emacs pinky?)

I used to think "emacs pinky" was a joke, until I got my first programming job and I suddenly used emacs eight hours a day. :-| Then I read somewhere that the Ctrl key used to be at the location now occupied by Caps Lock on PC keyboards. So now, on every computer I use regularly, I remap Caps Lock to be an additional Ctrl key. My pinky has thanked me for it ever since. ;-) Also, I cannot remember having used Caps Loc…

Actually the machines Emacs was developed on had rubout where caps lock is today. Control and meta were next to the space bar (control on the inside) and they were also wide keys like shift is.

Sun put control where caps lock goes; i don't know if they originated that or if it copied someone else's existing practice.

Re: 'Using Emacs' Series

#52
post #42

Hey, has any of you guys been using emacs for modern front-end development? I’ve been looking for video tutorials (or at least for demos) on this subject, but could not find anything useful and practical. How is emacs’ support of JSX? Of typescript and TSX? Of flow? Of CSS in JS? Of eslint? Does it keep up with the crazy speed frontend development is changing, or has it remained far behind (being used mostly for the…

I have done some work in angular2 (and rails, fwiw) using emacs.

There are modes for javascript (yegge's js2-mode is one of the more feature rich modes I have seen for any language), angular, and typescript. I have not tried eslint but a quick search for emacs eslint turned up some packages.

What in particular would you be looking for in terms of front-end development?

One issue I run into is problems with poor (auto)indentation when I am editing a file which contains html formatted as a string. For example an html template in an angular module. Anybody have/fix this issue?

Re: 'Using Emacs' Series

#53
post #51
post #20

Earlier quoted context omitted.

I used to think "emacs pinky" was a joke, until I got my first programming job and I suddenly used emacs eight hours a day. :-| Then I read somewhere that the Ctrl key used to be at the location now occupied by Caps Lock on PC keyboards. So now, on every computer I use regularly, I remap Caps Lock to be an additional Ctrl key. My pinky has thanked me for it ever since. ;-) Also, I cannot remember having used Caps Loc…

Actually the machines Emacs was developed on had rubout where caps lock is today. Control and meta were next to the space bar (control on the inside) and they were also wide keys like shift is. Sun put control where caps lock goes; i don't know if they originated that or if it copied someone else's existing practice.

Huh. Thanks for the info.

Re: 'Using Emacs' Series

#54
post #7

I am a little concerned you start with package repository and then org mode. Emacs is at heart a simple, modeless editor. With c-[fbpns] and c-x c-[fa] you can immediately, if laboriously, do anything. Every new thing you learn incrementally speeds you up.

I saw the headline and my first thought was "Emacs tutorials, cool! What's not to like?" and then I clicked the link and saw

  Video 1 - Setting up the package manager
  Video 2 - Intro to Org Mode
  ...
and thought "Why there are two things" and then came back to the comments and this thread was at the top and it sort of put the decision by the videos' authors in perspective.

At it's heart, Emacs is "The Extensible, Customizable, Self-Documenting, Display Editor." [1] I'd be much more comfortable saying Notepad is a simple, modeless editor. For a contemporary developer, package management is a reasonable reference point (even JavaScript has package management). And to me, org-mode is the killer app...Oh Babel. There is nothing else quite like You.

[1]: http://worrydream.com/refs/Stallman%20-%20EMACS,%20The%20Ext...

Re: 'Using Emacs' Series

#55
post #31
post #28

Earlier quoted context omitted.

I'm a long time vim user, but after a colleague showed me org-mode I installed emacs (with spacemacs). Currently I only use it to edit org files, but it feels like there is a whole ecosystem waiting to be explored.

You should check out magit, as well.

And elisp.

Re: 'Using Emacs' Series

#56
post #12

What is the best way to reduce pain from using ctrl with pinky finger? (emacs pinky?)

For me, it's been keyboards with ctl and alt on both sides. Thanks to Xah Lee [1]. This rules out Macbooks (and most laptops) and favors Thinkpads, though currently I have a Dell Precision laptop and it has ctl and alt on both sides but the ctl's are not symmetrically placed and it is a bit annoying and not as good as the Thinkpad it replaced but it is workable.

On my desktop, I have a Microsoft Natural Ergonomic 4000, which is an awesome keyboard and cheap and robust. The major compromise is that it is corded to USB, but for me it is worth it.

That said, it takes practice to develop muscle memory to use both ctl keys and both alts and key bindings that require switching ctl keys to touch type feel strange.

[1]: http://ergoemacs.org/emacs/emacs_pinky.html

Re: 'Using Emacs' Series

#57
post #42

Hey, has any of you guys been using emacs for modern front-end development? I’ve been looking for video tutorials (or at least for demos) on this subject, but could not find anything useful and practical. How is emacs’ support of JSX? Of typescript and TSX? Of flow? Of CSS in JS? Of eslint? Does it keep up with the crazy speed frontend development is changing, or has it remained far behind (being used mostly for the…

I've had good luck with JSX in web-mode. It just kind of... works?

Re: 'Using Emacs' Series

#58
post #42

Hey, has any of you guys been using emacs for modern front-end development? I’ve been looking for video tutorials (or at least for demos) on this subject, but could not find anything useful and practical. How is emacs’ support of JSX? Of typescript and TSX? Of flow? Of CSS in JS? Of eslint? Does it keep up with the crazy speed frontend development is changing, or has it remained far behind (being used mostly for the…

Honestly? WebStorm with Emacs key bindings and several plugins. I use Emacs for pretty much everything but web development is not where it truly outshines other tools :(

Re: 'Using Emacs' Series

#59
post #42

Hey, has any of you guys been using emacs for modern front-end development? I’ve been looking for video tutorials (or at least for demos) on this subject, but could not find anything useful and practical. How is emacs’ support of JSX? Of typescript and TSX? Of flow? Of CSS in JS? Of eslint? Does it keep up with the crazy speed frontend development is changing, or has it remained far behind (being used mostly for the…

I'm using RJSX-mode + emmet mode for JSX. RJSX is a fork of js2-mode so it handles normal js just as well. It has built-in linting that works great but you may still want to set up eslint if there's a need for it. `web-mode` is the undisputed best mode for HTML and again you can pair it with emmet-mode to write even faster.

If you're looking for 'intelligent' auto-completion like IntelliJ Emacs is probably not for you, but I think most people choose Emacs for its keybindings and workflow anyway. The shortcomings are definitely worth it imo.

Re: 'Using Emacs' Series

#60
post #12

What is the best way to reduce pain from using ctrl with pinky finger? (emacs pinky?)

I read from somewhere saying that Emacs was invented at a time where the control key reside at where the caps lock key resides now.

One day, my pinky genuinely hurt from stabbing the control key of my work-issued keyboard. I remapped the control key to caps and never looked back.

Post reply on HN