143 points · by masolino · 11y ago · 51 comments
http://emacs.stackexchange.com/
(After first seeing the title, I assumed that's what this post was about!)
"GNU Emacs is an extensible, customizable text editor—and more. At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing."
Text editing is a subset of Emacs and Emacs Lisp, not the other way around.
I know. But it was written as just a text editor—but an extensible one, and so it has grown to be a lot more. Which is really pretty awesome.
No it's not. It is really a big REPL optimized for text processing. You compare Emacs to the like of Python, not just some random editor. Unlike other editors that have an optional extension language, if you remove Emacs Lisp, effective you remove Emacs. Even file opening is written in Emacs Lisp.
That post is the fifth most popular thing on my blog, all from search-hits looking for how to count words in Emacs.
The difference is that sos-mode is made for getting answers quickly and being able to copy/paste any code snippets. The output buffer of answers uses org-mode so it's easy to tag the list.
A full-blown stackexchange mode may be good if you're answering questions or looking for a lot of answers but I don't see that happening a lot. Most users are anonymous (sos-mode doesn't require login) and just want to get some answer.
Today I feel it has missed its boat with good looking and user friendly stuff available like Sublime Text, Atom, Eclipse and even cloud IDEs.
I cant help but to laugh quietly to addons like this.
It just happens that there are people out there, like me, that want more out of their software and really enjoy tweaking and improving our editor. For us, there's emacs :).
I want to jump to any file at any time regardless of where I am in the project instantly, can Sublime do it? And even if a project has 30-40k files, it must be fast and make me jump instantly. See the demos in this guide for details: http://tuhdo.github.io/helm-projectile.html
Atom has a limit of 2MB text file which is worse than Vim in the 90s.
https://www.youtube.com/channel/UCsON_8vogp4nCQFTnfu43kA
(Other languages also have nice modes for context-aware completion (and more), like Haskell's ghc-mod and Rust's racer, which is incomplete but is already very nice)
[1] - http://emacsrocks.com/
Yes, Sublime handles that smoothly. Do a linux tree clone, enter the directory, run "subl .", then ctrl+p (or cmd+p) and start typing whatever. It fuzzy-completes your typing and immediately displays your selection as a preview in the background as well.
Video here: https://www.dropbox.com/s/wjc9k8ocwiukq5t/sublime-linux.mov?...
(note the percentage in the footer, it was indexing in background the files for code completion and other stuff, since I had just cloned it, but the file jumping still works smoothly).
I skimmed through your other videos, and I didn't instantly see anything that I couldn't do with a recent editor as well.
How about other thing? Like switch between source and header files without configuring anything? Or Jump to any file I see instantly, even without full filepath and you only have just a name and without typing the filename? http://tuhdo.github.io/static/helm-projectile/helm-projectil...
Can it do powerful automatic indentation: https://github.com/Bruce-Connor/aggressive-indent-mode. It does not only indent the current line, but the whole Semantic context around your cursor. Demos inside the homepage.
Beautiful compile output: http://tuhdo.github.io/static/c-ide/compilation-compile.gif
Open man page for symbol at cursor: http://tuhdo.github.io/static/part3/helm-man-woman.gif
Emacs can save any arbitrary window layout and restore it later. You can even have workspace in Emacs, each can store a set of window layouts (i.e. one for debugging, one for reading doc, one for just source code...), can be saved as a bookmark and later restore in future session. In Emacs, you can bookmark everything, even a git commit.
However, it's not particularly suited to quick server admin stuff. If you're using emacs as its intended, you'll have a lot of packages to load on startup, making it sluggish for ad-hoc editing with sudo (precluduing use of emacsclient). Emacs -q or mg would be faster. Personally, I'm fond of joe for this purpose - more functionality than mg while far smaller an install than emacs.
It looks to me like you're probably unaware that an Emacs not running as root can edit files owned by root. The way it goes about it (in a word, TRAMP) is a little complicated under the hood, but (at least for files residing on the same machine as the Emacs process) reliable.
Specifically, both C-x C-f /sudo::/etc/hosts and `emacsclient /sudo::/etc/hosts` work.
function semacs() {
emacsclient -t -a "" "/sudo::$(realpath $@)"
}Once you have that "everything is text" realisation, there are two ways to make the most of it. One is to have an editor that's easily called from other places (e.g., vim) and the other is to have an editor that can be integrated into everything (e.g., emacs).
I started using emacs over a decade ago, and it keeps growing and changing to best suit my workflow. And yes, that includes reading mail.
(just kidding. I don't like SE but I'm sure this is a great tool for people who do like SE.)