-
A very useful friend to make a elisp function starting from your….last command
C-x ESC ESC (translated from C-x <escape> <escape>) runs the command repeat-complex-command (found in global-map), which is an interactive compiled Lisp function in ‘simple.el’.
It is bound to <again>, <redo>, C-x M-:, C-x M-ESC.
Read More -
Sometimes I need a very very fast start on emacs. If you have the same need, put this in your init.el and live happy:
(cua-mode) (setq select-active-region nil) (setq mouse-drag-copy-region t) (global-set-key [mouse-2] 'mouse-yank-at-click)
-
Some “new” shiny IDE feature smart multi line editing, for instance for easily copy-past a block of code and then modifying it “live”. Sublime text has some feature like this…. and Emacs?
Emacs has a package for it called…Multiple cursors!
This video on “EmacsRocks” shows you some powerful use
Read More -
In Excel you can easily fill in a column with a list of values. Some times also in Emacs you my need to write down a bunch of similar code. The dotimes function with the “elsp eval” M-x : (Esc + : on windooze) will solve your trouble easily. Try out this code on scratch buffer:
Read More -
Okey, getting emacs working on Windows is a pain, but we deserve a better editor for us(tm).
I havce found a bunch of emacs alternative distributions, and this 64bit build seems a nice shot
-
-
Did you know? Emacs supports killing rectangles of text!
Issuing “C-x r k” (kill-rectangle) will kill a rectangular area of text. This can be very useful when you have fixed-string text you must process.
yank-rectangle “C-x r y” will paste it where you like.
As usual Emacs rocks!
Read More -
Ops I did it again. Although I repeatedly said I didn’t love emacs Lisp, I finally managed to learn it. So I want to share with you my tips, to help entering in the Emacs Lisp world in a fast, fun and easy way.
First of all Lisp is a very elegant language, as you may expect. Lisp is so elegant you will have to take your time to learn it, because it is a bit cryptic. To make things even worst, emacs function names are less than intuitive. The solution anyway is here: cookbooks!
Read More -
So you know I need Emacs on every PC I use.
On windows7 I stick with a linuxVM when possibile, but sometime you need maximum speed, and EmacsWin32 is a good guy. Then I read the exact description of my problem…
Emacs on my Windows 7 work laptop was annoying slow when starting (around 10s). If closed and restarted, startup was immediate until, after about 30 seconds, it was slow again. According to Google, slowness might be due to failing DNS lookups of the laptop's hostname.
and I find out this solution: stop netlogon service via a command likenet stop netlogon
The add also this line to your .emacs...(setq w32-get-true-file-attributes nil)
-
!UPDATED!
Okey I love emacs, you are allowed to say I am a nerd. But I use emacs. So I could solve your problems with a Ctrl-Alt-x kung fu combination, involving yoga-like finger movements.
So do not mess with me… :D (I am like the Zohan, only with glasses :)
Read More -
Replacing on entiere set of files is hard in Emacs. But I find the correct mumbo-magic procedure, and gifted it to you:
- Call dired to list files in dir, or call find-dired if you need all sub directories.
- Mark the files you want. You can mark by regex by typing 【%m】.
- Type Q to call dired-do-query-replace-regexp.
- Type your find regex and replace string. (➲ common elisp regex pattern)
- For each occurrence, type y to replace, n to skip. Type 【Ctrl+g】 to abort the whole operation.
- Type ! to replace all occurrences in current file without asking, N to skip all possible replacement for rest of the current file. (N is emacs 23 only)
- To do the replacement on all files without further asking, type Y. (Emacs 23 only)
- Call ibuffer to list all opened files.
- Type 【*u】 to mark all unsaved files, type S to save all marked files, type D to close them all.
-
As you know, emacs rocks. This blog post give us an “Emacs Sitemap” for the newbies, and I stress…(edited content…)
[…]
- EmacsWiki: you probably already know this one, but it’s pretty useful for a variety of reasons.
- EmacsRocks / @Emacsrocks: it’s a series of screencasts showing off cool, advanced Emacs features. Each screencast is very short and focused on one thing. Instant awesome.
- EmacsRookie / @EmacsRookie: a blog with articles about different Emacs trips & tricks and features. More geared towards beginners (but my impression is that many people stay “beginners” of Emacs for quite a long time).
- Steve Yegge described “10 Specific Ways to Improve Your Productivity With Emacs“. In particular, I’d recommend making Caps-Lock behave as an extra Control key (I didn’t swap, I just have one more Control key), invoke M-x without the Meta key (both C-x C-m and C-c C-m) and being comfortable with the buffer commands. For navigation, apart from incremental search, you can also use ace-jump.
- Christian Johansen has an interesting intro article to Emacs Lisp.
- hippie-expand is a pretty cool completion system, familiarise yourself with it.
- yasnippet. Very cool snippet system. Just have a look at the EmacsRocks screencast on yasnippet.
-
Org Mode parser for nodejs is here, right now!
Oct 4, 2011 · 1 min read ·If you love Emacs Org Mode, and you are looking for a JavaScript parser for it, you are in the right place!
I have just published an org-mode parser for Node.js, the Javascript based server a lot of guys talk about.
This first revision spot more then 20 non-regression tests, and it is ready for a prime time use. Anyway, production use is still discouraged because additional testing is needed. Feel free to email me or to leave a comment.
Read More