After now 11th year of living in emacs daily, i discovered the utility of the mouse!
In dired, you can just click about to browse files. Same for Bookmark. The exception is ibuffer. Pity.
I'll try to use the mouse more often. Discovered this because recently am typing too much and is becoming a problem.
Previously, we've covered Single Command to Delete Whole Line and How to Copy/Cut Current Line. But what if you want to select the current line with a single command? Very short, like this:
(transient-mark-mode 1) (defun select-current-line () "Select the current line" (interactive) (end-of-line) ; move to end of line (set-mark (line-beginning-position)))
This is added to Emacs Lisp Examples, check it out for other useful exmaples.
Transform HTML Tags with Emacs Lisp (elisp tutorial)
PS: Thanks to Roland Renaud, Sungmin Cho, for Donations.
Using Emacs for Twitter (tutorial)
Here's the top 10 most popular pages of the past month. The top one has 58 unique page views per day, on average. The last one has 29.
- 1. Emacs Advanced Tips
- 2. How to Define Keyboard Shortcuts in Emacs
- 3. Emacs Lisp Basics
- 4. Emacs and Unicode Tips
- 5. ErgoEmacs Keybinding
- 6. Emacs and Shell Tips (bash, cmd.exe, ...)
- 7. Interactively Find and Replace String Patterns on Multiple Files
- 8. New Features in Emacs 23
- 9. Why Emacs's Keyboard Shortcuts Are Painful
- 10. Text Pattern Matching in Emacs (emacs regex tutorial)
The time spent on each page is about 3 to 4 minutes.
Ever wonder what are the top 30 most frequently used emacs lisp functions? If you are just beginner elisp programer, you probably want to know these well. See: Emacs Lisp Function Frequency.
PS thanks to Kristian Hellquist for donation!
Created a snippet set for emacs lisp coding. Currently covering 105 elisp functions. Download at: Emacs Lisp Yasnippet Templates.
A new version of the ErgoEmacs Keybinding is out.
The new version is 5.3.4. New is a Swedish layout, and also the window splitting keys have changed for the ergonomically better. See the included “_HISTORY.txt” file for more detailed release notes. Thanks to Kristian Hellquist for the Swedish layout.
Also thanks to many who have voiced support.
How to Replace Multiple String Pairs in Emacs Lisp Buffer (elisp tutorial + package)
Left Wrist Motion Pain; vi Esc Syndrome (essay)
small elisp programing tip.
elisp has the toothpick syndrom. When you use elisp to process html, all the "quote" characters needs to be escaped. (worse if you have backslash (e.g. Windows style path) and need to process it with emacs regex.) If you process a lot html files, the typing of backquote gets painful.
Here's a quick commmand i've been using for a couple of years:
(defun escape-quotes-region (start end) (interactive "r") "Replace \" by \\\"." (replace-pairs-region start end '(["\"" "\\\""]))) (defun unescape-quotes-region (start end) (interactive "r") "Replace \\\" by \"." (replace-pairs-region start end '(["\\\"" "\""])))
You can assign a key to them.
This calls replace-pairs-region. Which i have defined. See if you can code that. I'll post my code tomorrow.
Re-wrote 2 tutorials:
- How to Eval Emacs Lisp Code, Search a Function, and Lookup Documentation
- How to Edit Lisp Code With Emacs
Printing in Emacs Lisp (tutorial)
Problems of Emacs's Manual; Examples. (commentary)
Emacs Hyper and Super Keys. (tutorial)
Emacs Idolization: Have You Read the Emacs Manual From Cover to Cover?. (commentary)
Outline mode (org-mode) is nice, but i never took the time to learn the details. Have been using it simply by just knowing the star header syntax and Tab or Shift Tab to show/hide headings. Today, i took the time and learned the basics keyboard shortcuts for creating and moving branches. Fantastic. Added to Writing Outline with Emacs (org mode tutorial).
There's glasses-mode, a minor mode, bundled in at least emacs 22.2. It will display “camelCase” words like this “camel-Case”. Note: it only display it that way, the text is actually not changed. (via gnu.emacs.help post by Tim X)
This tip is added to: Emacs Advanced Tips.
Complete re-write: Emacs Lisp: Writing a google-earth Function. It was written when i just started learning elisp in 2006. Now much better.
Added a section to How To Avoid The Emacs Pinky Problem, at the bottom.
In the past few days, been working on my site that heavily involves emacs lisp scripts i've written.
First is a update to my kml files. See: (Google Earth) KML Validation Fuckup. This involves also updating my script for generating kml files, see: Emacs Lisp: Writing a google-earth Function. Then, i created a collection of links to kml files. See: Google Earth Files at XahLee.org. This is done by modifying my elisp script that generate Wikipedia links. See: Generate a Web Links Report with Emacs Lisp.
Google Earth today is amazing. You can see photos of any street of all major cities around the world, most with panoramic display. (See: Google Earth Geography 101.)
How to Quickly Switch Fonts in Emacs (tutorial)
GNU Emacs Developement Inefficiency (commentary)
ErgoEmacs mentioned in news.ycombinator.com.
What's the difference between library, package, features? And what's the difference between load-file, load, require, autoload? See: Emacs Lisp's Library System.
Thanks to YOO for a major correction. See: Emacs: How to Turn a Minor Mode on/off/toggle?
Want the cursor movement to stop between camelCaseLetters? Use “global-subword-mode” or “subword-mode”, available in emacs 23.2. (Thanks to Deniz Dogan for the tip.)
This tip is added to: Emacs Advanced Tips.