Hacker News new | ask | show | jobs
by andanotherthing 3091 days ago
Agree! I am not a developer or an overly technical person and I recently started using Emacs because of an article here (using ido and org mode). I like it but I'm not fluent enough, or know enough of what it does to switch to it for everyday tasks - but there's a beauty in navigating file systems, creating files, switching windows all with your keyboard.

Does anyone know if you can actually write code on Emacs, like HTML/CSS/Javascript?

5 comments

Does anyone know if you can actually write code on Emacs, like HTML/CSS/Javascript?

Do you mean modifying Emacs while it is running?

If you switch to the "* scratch * "[1] buffer and type one of these and after each of these either press «Ctrl-J» or «Alt-x eval-print-last-sexp»:

  (message "Hello, World!")

  (setq cursor-type 'hbar)

  (setq cursor-type 'box)

  (setq indicate-empty-lines t)

  (setq show-trailing-whitespace t)
Is this what you meant?

[1] I have no idea how to get a normal asterisk on HN.

> Does anyone know if you can ... on Emacs?

Yes.

Actually this link is all about write front code in Emacs, that's why it's named `frontmacs` I guess. Yeah, currently I am write frontend code inside emacs. Nothing special. I just used few major modes. js2-mode/web-mode/css(sass)-mode, there is typescript mode. Only for syntax highlighting. I don't use auto-complete thing.
If you mean using emacs as your code editor then yes, that's the main purpose of emacs for most users. However there's other hidden eastereggs such as M-x pong, M-x tetris or why not try M-x doctor if you're feeling a bit down.
> M-x doctor if you're feeling a bit down.

Yeah. M-x doctor is really helpful, especially when you are depressed. For example, if you say the doctor that "I'm going to suicide", it will guide you the right way.

Your question seems to confuse some, do you mean run elisp interactively or edit HTML/CSS/JavaScript? If so I want to say yes to both.