Profile

Cover photo
1,882 followers|1,724,798 views
AboutPostsPhotosVideos

Stream

ErgoEmacs

Shared publicly  - 
 
#Emacs Select Line, Block, in Quote, Extend Selection http://ergoemacs.org/emacs/modernization_mark-word.html
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
new emacs tutorial is out.
buy, retweet. Thanks.
http://ergoemacs.org/emacs/emacs.html

11
1
Patricio Martinez's profile photo
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#emacs tutorial, now with side panel for easy navigation http://ergoemacs.org/emacs/emacs_subword-mode_superword-mode.html

3
Lizardo Reyna's profile photoErgoEmacs's profile photo
2 comments
 
+Lizardo Reyna thanks for reading :D
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs Auto Save. If you want real auto save, M-x list-packages and search for real-auto-save on MELPA http://ergoemacs.org/emacs/emacs_auto-save.html
emacs has auto-save-mode , however, it may not be what you think it is. Emacs's auto-save-mode periodically saves a copy of your file with the name # filename # , that is, with the number sign character # . When you save the file, those #files# will be deleted.
1
ErgoEmacs's profile photoNick Alcock's profile photo
5 comments
 
+ErgoEmacs, yeah, that's what I'm implying. The Emacs autosave mechanism doesn't overwrite the user's files with the contents of a buffer (very much intentionally), but real-auto-save does: see e.g. <https://github.com/ChillarAnand/real-auto-save/blob/master/real-auto-save.el#L84> (assuming this is the right thing, which it looks like it is).

Undo still works across real saves, of course, but if you do a real save and them Emacs crashes or the power goes out, or, y'know, any of the things you might have been avoiding saving for... you're stuffed.

This is more problematic yet for those of us (like, well, you and me) who work on things  have to be in consistent states for things like compilers and interpreters to accept them. I dunno about you, but I'm all the time compiling things that already exist in a modified intermediate uncompilable state in some buffer somewhere: finding that Emacs has silently overwritten the compilable copy with the copy in the buffer would be ferociously annoying. (Maybe I am more annoyed than most by this sort of thing, but people have suggested making auto-save work the way real-auto-save does on the emacs development list in the past, and the pushback was pretty fierce. Mind you, the pushback against everything is fierce on that list. :) )
Add a comment...

ErgoEmacs

Shared publicly  - 
1
Add a comment...
In their circles
1,333 people
Have them in circles
1,882 people
肖雅楠's profile photo
Mark Phelan's profile photo
Matthew Fidler's profile photo
Ivveius Sinensis's profile photo
Jon Kaufman (arsenick)'s profile photo
Shihpin Tseng's profile photo
Hideo KOMATSU's profile photo
Jinghua Luo's profile photo
jitendra gujjar's profile photo

ErgoEmacs

Shared publicly  - 
emacs toothpick syndrom: xkcd comics backslashes 1638 http://xkcd.com/1638/. Here's a real world one. emacs backslash xah--forward-real-double-quote 2016-02- 5 backslashes. emacs lisp toothpick syndrome 2016-02-03 10 backslashes. 〔Call describe-function on replace-match-maybe-edit , jump to ...
2
Nick Alcock's profile photo
 
That reftex-vars one is deeply disturbing. :)
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#emacs byte compile elisp file help you find errors. In dired, press B to compile. http://ergoemacs.org/emacs/emacs_byte_compile.html
Emacs: Byte Compile Elisp Files. Buy Xah Emacs Tutorial. Master emacs benefits for life. Xah Lee. , 2011-07-15 , …, 2016-01-29. Emacs lisp files can be byte compiled. Byte compiled elisp file has “.elc” suffix (aka extension). Normal elisp file has “.el” suffix.
1
Add a comment...

ErgoEmacs

Shared publicly  - 
5
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#emacs isearch, make space same as - _ or newline
(setq search-whitespace-regexp "[-_ \n]")
2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
this method, is superior to electric-pair and other packages. http://ergoemacs.org/emacs/elisp_insert_brackets_by_pair.html
Emacs has electric-pair-mode , which insert a bracket pair when you type the left bracket. 〔➤ Emacs: Insert Parenthesis by Pair: electric-pair-mode〕. electric-pair-mode has some problems: It does not close { } when in emacs-lisp-mode . Which brackets it will close depends on the major mode ...
1
Add a comment...

ErgoEmacs

Shared publicly  - 
 
#Emacs for beginner: all you need to know about Find & Replace http://ergoemacs.org/emacs/emacs_find_replace.html

2
Add a comment...

ErgoEmacs

Shared publicly  - 
 
today's tips.
• for org-mode beginner. Read this Markup Cheatsheet, like markdown, start simple.
http://ergoemacs.org/emacs/emacs_org_markup.html

• Emacs Lisp: Insert Random Number / Hexadecimal
Useful for learning elisp too.
http://ergoemacs.org/emacs/elisp_insert_random_number_string.html

• if you are new to #emacs #lisp, you can write emacs commands using any of your fav lang as emacs command.
http://ergoemacs.org/emacs/elisp_perl_wrapper.html

Emacs Lisp: Write Emacs Commands Using {Perl, Python, Ruby, …} Buy Xah Emacs Tutorial. Master emacs benefits for life. Xah Lee. , 2008-10-30 , …, 2015-06-30. This page shows you how you can write a text processing script in your favorite language, then make it available in emacs as a command.
2
1
Jörg Schulz's profile photo
Add a comment...
People
In their circles
1,333 people
Have them in circles
1,882 people
肖雅楠's profile photo
Mark Phelan's profile photo
Matthew Fidler's profile photo
Ivveius Sinensis's profile photo
Jon Kaufman (arsenick)'s profile photo
Shihpin Tseng's profile photo
Hideo KOMATSU's profile photo
Jinghua Luo's profile photo
jitendra gujjar's profile photo
Contact Information
Contact info
Email
Story
Tagline
Emacs tips & tricks + ErgoEmacs news.
Introduction
One or two emacs tips per day.

• Tips in using emacs
• Tips in coding emacs lisp.
• Occasional news/tips about ErgoEmacs.

Spread emacs. Join us.