Domain: emacswiki.org
Stories and comments across the archive that link to emacswiki.org.
Comments · 181
-
Re:I say it will happen
I did switch to emacs way back, to do column blocks
;) that is kinda like switching a keyboard. emacs is different (alien) those who know, know.
No worries! Rescue is on the way!!
Emacs has a superb vi/m mode: https://www.emacswiki.org/emac... or you could go really evil: https://www.emacswiki.org/emac...Emacs is still a decent operation system, and with the vim and evil mods it now does no longer lack a decent editor!
-
Re:I say it will happen
I did switch to emacs way back, to do column blocks
;) that is kinda like switching a keyboard. emacs is different (alien) those who know, know.
No worries! Rescue is on the way!!
Emacs has a superb vi/m mode: https://www.emacswiki.org/emac... or you could go really evil: https://www.emacswiki.org/emac...Emacs is still a decent operation system, and with the vim and evil mods it now does no longer lack a decent editor!
-
Re:I've been using VIM for 20 years
Implementing vim within Emacs is easy. Erik Naggum did it with just one line of elisp.
-
Re:Patience is a virtue
No need to rewrite, Emacs already works as a systemd unit
-
Re:You all presumably know why.
Daemonized Extensible VI Layer (DEVIL), the SystemD reimplementation of EVIL.
-
Re:No, because meaningful whitespace
A good programming editor has the ability to make 'whitespace' characters visible somehow. IMHO, lack of that feature is one of the criterion for being good or being suitable for programming. (Yes, you can also write War and Peace in notepad.exe if you really have to.)
VIM has 'set list'.
Sublime shows whitespace on selected text.
Atom has the editor.toggle-invisible setting (and lots of packages to add menu option for it.)
Visual Studio has CTRL + R, CTRL + W Menu: Edit -> Advanced -> View White Space
In EMACS you have to write a little lisp code.
At the end of the day this is about as annoying as finding the missing semicolon in ALGOL-style code.
-
Re: Have they added curly braces yet?
Useful editors let you toggle visible symbols for all characters. Use set list in vi or vim. Emacs has WhiteSpace mode and shows you characters like wrong line terminators by default.
While languages like Python do support Unicode strings, most programming languages stick to roughly the lower ASCII range for symbols. This means you are going to get some collisions somewhere. Wait until you work in any language with the semicolon (;) as an optional or mandatory end of line character. This appears the same in most fonts as the Greek question mark (Unicode character 037e).
. but the problem with using it to directly delimit logical blocks is that humans don't actually directly read whitespace, there can be something syntactically wrong with a program that is not visible to humans reading it because of a line that had a tab character in it instead of spaces, or vice versa, for example.
The only real problem with Python's style of indentation is that it doesn't intelligently collapse tabs and spaces into some uniform indentation for a block. Like tab stops were invented to provide in the first place. But then the language lacks syntax like case statements because, of all the syntactic sugar poured into Python, the BFDL doesn't like them. Programming languages are about communication - clearly expressing yourself to the computer and to other programmers (like yourself in six months, two jobs and twenty interruptions.) Having to lint for invisible characters is the opposite of communication. But since that indentation-defining white space is pretty core to the language it is not likely to be solved without fancy tricks involving what the code "looks like" to a human verses the text string fed into the compiler or interpreter.
In the end, if this were about C people would just be arguing about bracing styles.
-
Pfft. I bet I could do that in emacs.
You don't need a browser.
Oh
... wait. -
Re:My favorite Emacs joke
-
Re:My favorite Emacs joke
-
Re:My favorite Emacs joke
-
Re:My favorite Emacs joke
-
Re:My favorite Emacs joke
-
Re:My favorite Emacs joke
-
Re:My favorite Emacs joke
-
Re:My favorite Emacs joke
-
Re:one thing the tabs and spaces folks agree on
No, it's the one standout brain-on solution: tabs are indent characters and spaces are alignment. The problem is that the other two characters (spaces guy and tabs guy) don't know the difference between indent and alignment so, like you, they attack the guy that voices reason.
-
Re:one thing the tabs and spaces folks agree on
https://www.emacswiki.org/emac...
EMACS can deal quite nicely with both. With smart-tabs mode, it uses tabs for indentation and spaces for alignment which, as a couple of people above have pointed out, always keeps things properly aligned regardless of tab size.
That said, most EMACS users have been around long enough to know that regardless of how theoretically nice the approach is, it's a Bad Idea. It works great until it doesn't. In contrast, using spaces only works, even without editor support (though it's better with editor support), and the only real downside is that files are a tiny bit larger.
Personally, my approach to indentation these days is to construct a reasonable
.clang-format file, bind "clang-format -style=file -i" to a key combination (I use <Ctrl><Alt><Tab>, struck as a chord with my left hand's thumb, pinky and ring finger, with the hand automatically bouncing back to home row), and hit it regularly. There are rare corner cases where the formatting it produces is sub-optimal, but weighed against being able to Just Ignore Formatting, I'll pay that price all damn day. I write code without bothering with spaces or line breaks except when my fingers happen to randomly insert them, then let clang-format fix it all up for me. I don't think about where to break lines, where to line things up, when to put spaces around expressions, etc. The tool does that, does it right 99% of the time and I can live with the 1% of the time it doesn't. -
one thing the tabs and spaces folks agree on
-
Facebook support seems to be available.
There seems to be at least an attempt at interfacing with facebook: http://www.emacswiki.org/emacs...
-
Re:Old joke even more true....
Not joking:
-
Re:Can it debug?
Getting Emacs set up is a good bit better since they added package support. You can mostly just package install a bunch of packages and they seem to work sensibly. Stuff like vi style paran matching in edit mode takes a bit more work, but there's a function you can bind to a key on the Emacs Wilki.
-
Re:SystemD kernel already supports
> Now only if it had a decent text editor for
...You could always use Vim
... /me ducks ;-)Or if you are really evil
... Vim mode for EmacsIf you really want to go straight to hell
... Emacs mode for VimPick you religion / devil
:-)Are you mentally retarded? Honestly, I'm curious.
-
Re:SystemD kernel already supports
> Now only if it had a decent text editor for
...You could always use Vim
... /me ducks ;-)Or if you are really evil
... Vim mode for EmacsIf you really want to go straight to hell
... Emacs mode for VimPick you religion / devil
:-) -
Re:Their work is being wasted.
Utter BS. The user land of Linux gets better and better. I remember the time about 14 years ego when I had to put some obscure data of my monitor in the Xorg.conf to get any graphic output, and when I could only have sound from one application. PulseAudio, KDE and Gnome all improved my experience of Linux, and now systemd which also improves my experience. For example, to add the Emacs-Daemon I just had to put a 14 lines systemd-service file in
.local/share/systemd/user/emacsd.service and run systemctl --user enable emacsd, without root privileges.Just look what a mess Sysvinit scripts are for the same task:
http://www.emacswiki.org/emacs...
For the same task in systemd for Sysvinit I need an over 150 lines bash script, root privileges, and the Sysvinit have several bugs that needs to be fixed. And for what? Just to start a user daemon. -
Viper, the decent text editor for Emacs
emacs would be a great IDE if only it had a decent text editor
Does Viper count?
-
Document your Easter eggs
This is why Emacs documents its Easter eggs in the manual, even the one that's a knockoff of a famous video game by some Russian guy.
-
Viper mode
On a GNU phone, you can use GNU vi, or you can install any other free implementation of vi.
-
Re:Will it work with my distro?
-
Re:Start rant here
You can probably find an option somewhere in the preferences, but you can drop this into
.emacs:(indent-tabs-mode nil)
More information is here:
http://www.pement.org/emacs_tabs.htm#spaces_only
There are also other references with more details on customizing tab use (I like the comic in the second link):
-
Re:Start rant here
You can probably find an option somewhere in the preferences, but you can drop this into
.emacs:(indent-tabs-mode nil)
More information is here:
http://www.pement.org/emacs_tabs.htm#spaces_only
There are also other references with more details on customizing tab use (I like the comic in the second link):
-
Re:Tell time
-
Re: You're welcome to them.
"[Emacs] Cua-mode allows one to use ‘C-v’, ‘C-c’, and ‘C-x’ to paste, copy, and cut the region. Since this conflicts with very important keybindings in Emacs, these CUA bindings are only active when the mark is active. The package does a whole lot more, too: ‘C-z’ to undo, Shift-movement to select, and it includes support for rectangular regions" http://www.emacswiki.org/emacs...
-
Viper-mode
The editor that comes with Emacs is called Viper. Have you tried it?
-
Trivially accomplished
-
Re:You lost me at vim
Evil, obviously.
-
Re:Google Glass Whitespace - iamslashdot
-
Re:This just in...
See vi vs emacs for further examples.
Actually, there's a compromise there, but it's evil - you can in fact make Emacs act like vi!
-
Re:Surprised
True, but you can add a decent editor: http://www.emacswiki.org/emacs/Evil
-
You were trying to be funny but... AAYSR
-
Re:I've tried emacs and vi(m)
Yep, same here. For editing config files, nano just works and works well.
What constantly blocks me from learning either Emacs or vi is that neither of them seem to coexist well with the industry-standard CUA keybindings that we use everywhere from Windows to Mac to Linux. And CUA has been out since, what, the mid 1980s?
Yes, it's nice to be able to program your editor in Lisp. It's not nice however to have an editor that thinks it's 1970 and that it owns your entire keyboard and screen, and doesn't know what a mouse is. Wake me up when Emacs can interpret Ctrl-X as cut, Ctrl-V as paste, Alt as raising a menu bar and F1 as help.
(I'm aware a thing called Emacs CUA Mode exists. However the Emacs wiki is not encouraging. "this conflicts with very important keybindings in Emacs". Yes, sorry, no, "it's half built and doesn't completely work" is the wrong answer. Next.)
-
Re:Yawn
Yes, emacs, in its glorious tolerance of even the worst free ideas, sports a Vim-equivalent mode.
This is typically discarded after the vi-recovery phase. -
Re:Linux is obsolete. HURD is coming
GNU Hurd is going to reach stable status very soon! At that point, Linux will be essentially obsolete.
HURD? Heck, why? I mean: what's wrong with EMACS OS? You can even tweet from it: try this using only the retarded Linux or HURD kernels!
(ducks)
-
Re:My computer already understands me
-
I use a timer
I've integrated a silly little timer into my editor which alternates between long work periods and short break periods. I'll check emails and the interwebs on the breaks and close/minimize browsers to focus on task during the work times. At first I look forward to those little break times, but I get into a nice zone by the end of the day.
-
Re:Scheme and beyond
For kids I would most recommend the Racket IDE. It has a window like other programs and buttons and even has a few games. For the smart kids though, I would give them Emacs and show them how the editor is written in the same language that they are using (Emacs has SLIME as well as GEISER that integrates well with Racket or Guile), and they really take off with that. Sometimes the kids spend hours just exploring of the Emacs operating system and all the different modes (and games).
I have tried VIM, especially for a C language class, and it does work too. Vim is a very powerful editor for compiled languages. But for LISP/Scheme Emacs is definitely superior. In Emacs you can even go Evil and teach them both.
-
Re:Nay doomsayer...
This is why we developed a VI mode in Emacs for you!
Can't you be happy running VI in Emacs?!
-
What you really want for emacs scripting...
is TECO mode! 0LT$$
-
Re:mcedit or bust
-
Re:mcedit or bust