Emacs: Remapping Keys Using key-translation-map (minor updated)
Emacs Lisp: Open File in External App (minor update)
Emacs Lisp: CSS Compressor (old goodie, on its own page)
Ruby Creator Matz on How Emacs Changed My Life (repost)
emacs lisp. Solved a long time problem. Try to decode this using emacs lisp:
For solution see updated at: Emacs Lisp: Decode/Encode URL Percent Encoding
thanks to nns for the solution.
keyboard design. Xah Keyboard (updated)
see also, another new symmetric keyboard the Yager keyboard. Heart ♥ Keyboard, Butterfly Keyboard, Cat 😸 Keyboard, Star Trek Keyboard ⌨ (refresh page)
emacs 24.4 prelease binary for 64 bits Windows. http://semantic.supelec.fr/popineau/programming-emacs.html#sec-2, by Fabrice Popineau
new version of emacs tutorial. Buy Xah Emacs Tutorial.
tweet, repost, share, buy. Thank you.
spent 3 hours hacking emacs lisp. Created syntax coloring for CSS3 HSL (Hue, Saturation, Lightness) syntax.
See updates at:
there's functions at Emacs: Working with CSS Color Values that you can call to color any file's hex/hsl color syntax.
Emacs Lisp: Insert Random Number, Random ID, Random Hexadecimal (updated)
Emacs: Copy/Paste and kill-ring History (updated)
30 minutes job with perl python ruby becomes 5 minutes with emacs lisp: Emacs: Find/Replace Multiple Files by Function: Add Unicod Name
Emacs: Working with CSS Color Values (updated)
Sacha Chua, the incredibly productive and unique emacs hacker, posted a blog about best emacs resources.
〔Emacs beginner resources By Marie Alexis Miravite. @ http://sachachua.com/blog/2014/04/emacs-beginner-resources/〕
Thanks to Sacha and Marie for giving my site a high rating.
Sacha recently started to do a lot emacs videos. I've watched them all, except the new ones in the past month. Haven't had a chance to. If i can get over my stage fright, we'd do a emacs Q＆A or something similar down the road.
you can watch Sacha's videos, collected at http://sachachua.com/blog/tag/emacs-chat/
actually that's not all the emacs ones. I couldn't find one place that collects all at the moment. Check out all her YouTube at https://www.youtube.com/playlist?list=UUlT2UAbC6j7TqOWurVhkuHQ
her videos are very fun to watch.
comment at https://plus.google.com/113859563190964307534/posts/XPXgDiv9VSQ
Emacs Lisp: Converting Decimal ＆ Hexadecimal Numbers (repost)
here's a useful emacs lisp command that turns a Unicode symbol into a HTML markup.
(defun xah-mark-unicode (p1) "Wrap 「<mark class=\"unicode\" title=\"U+…: ‹NAME›\"></mark>」 around current character. When called in elisp program, wrap the tag at cursor position p1." (interactive (list (point))) (let* ( (ξcodepoint (string-to-char (buffer-substring-no-properties p1 (1+ p1))) ) (ξname (get-char-code-property ξcodepoint 'name)) ) (goto-char p1) (insert (format "<mark class=\"unicode\" title=\"U+%X: %s\">" ξcodepoint ξname) ) (forward-char 1) (insert (format "</mark>") ) ) )
<mark class="unicode" title="U+26E4: PENTAGRAM" >⛤</mark>
;; print all unicode chars up to 2^16 who's name contains "BULLET" (mapc (lambda (x) (let ((nn (get-char-code-property x 'name))) (when (and (not (null nn)) (string-match "BULLET" nn)) (insert-char x) (insert " " nn "\n") ) ) ) (number-sequence 0 (expt 2 16)))
See: Emacs Keyboard Macro Example: Insert All Unicode Bullets (updated)
(thanks to Martin for initial solution)
Few days ago we have a challenge: Emacs Keyboard Macro Example: Insert All Unicode Bullets (updated)
For a Python solution, see: Python: Processing Unicode: unicodedata Module Tutorial.
learned a lesson. Never open a PDF in emacs. Never even do it accidentally.
emacs since version 23 can open PDF files. 〔➤ Emacs 23.2 Features (released 2010-05)〕 It opens PDF file in
doc-view-mode. It works by converting the PDF file to png image files. Opening a PDF file in dedicated PDF reader takes 1 or 2 seconds, in emacs it takes 10 or freeze emacs. (and it doesn't work in Microsoft Windows or Mac, because it require some external libs.)
here's how to open PDF as hex, to prevent emacs freezing when accidentally hit a PDF file in dired.
;; open pdf files in hex mode (add-to-list 'auto-mode-alist '("\\.pdf\\'" . hexl-mode))
emacs 24.4 pretest version is out. Linux only. http://permalink.gmane.org/gmane.emacs.devel/171413
Emacs: Using Eww Web Browser (on its own page)
Emacs Keyboard Macro Example: Insert All Unicode Bullets (repost)
the Microsoft Sculpt Ergonomic Keyboard, a great ergonomic keyboard, reviewed by Øystein E Krog (see comment)
Emacs Lisp's Library System: What's require, load, load-file, autoload, feature? (updated)
one of the most important command, few people knew how to control case sensitivity. Emacs: Find ＆ Replace Tutorial (minor update)
Unicode Basics: What's Character Set, Character Encoding, UTF-8? (major edit)
emacs 24.4 feature. Call
toggle-frame-fullscreen 【F11】 to go to full screen.
Here's how to set specific font for Unicode emoticons (or a range of Unicode characters)
;; specify font for all unicode characters (set-fontset-font t 'unicode "Symbola" nil 'prepend)
This is very useful. Because, even if you have Unicode font, but emacs still does not display some Unicode emoticons. For example, on latest iBook, Mac OS X, emacs won't display these characters: 😃 😄 😱 😸 👸 👽 👍
updated at Emacs: How to Set Font
delete-duplicate-lines will delete duplicated lines in current text selection. The lines need not be sorted. You can try it on this:
aa bb cc aa bb aa bb
Emacs 24.4 New Features (released 2014-10)
emacs 24.4 has new functions to extract keys from a hash table. Same for values. (but you need to load a library first.) See: Emacs 24.4 New Features (released 2014-10) and Emacs Lisp: Hash Table