replace html chars to unicode
sometimes in posting html code to forums, it's painful to html-encode the greater and less signs, and the ampersand. You can never be sure whether the site accept html tags or not. Here's little command that convert it to Unicode.
(defun xhm-replace-html-chars-to-unicode () "Replace HTML < > & to Unicode chars 〈 〉 ＆. This works on the current text selection or block of text. See also: `xhm-replace-html-named-entities' `xhm-replace-html-&<>-to-entities'" (interactive) (let (bds p1 p2 myText) (setq bds (get-selection-or-unit 'block)) (setq myText (elt bds 0) p1 (elt bds 1) p2 (elt bds 2)) (replace-pairs-region p1 p2 '( ["&" "＆"] ["<" "〈"] [">" "〉"] ))))
part of Emacs: Xah HTML Mode.
you'll need Emacs Lisp: get-selection-or-unit
from reddit:〔〈changing emacs documentation system from texinfo〉 @ http://www.reddit.com/r/emacs/comments/2bummt/changing_emacs_documentation_system_from_texinfo/〕
somebody loved emacs over at w3c. Look at http://www.w3.org/TR/2011/REC-CSS2-20110607/cover.html, view source, bottom.
this is excellent. 〔How to Make an Emacs Minor Mode By Christopher Wellons. @ http://nullprogram.com/blog/2013/02/06/〕
Steve Jobs on keyboard. something is coming. https://onkeyboards.com/
Jesse Vincent's keyboard design is near completion.
the video is a bit of marketing, but nevertheless, it's a excellent keyboard. Visit Vincent's site at http://www.keyboard.io/
Why Microsoft Outlook has 【Ctrl+f】 for forward email, while every other Microsoft software has it for Find? Reminds me of emacs ＆ rms. http://blogs.msdn.com/b/oldnewthing/archive/2014/07/15/10542285.aspx
via Sujith Abraham
fixed a bug. Yesterday's change broke getting http links. Emacs Lisp: Command to Extract URL
by the way, the command is in Emacs: Xah HTML Mode. So, github to be continuously updated.
Are you using Emacs Gnus to read webfeed? emacs gnus doesn't support atom format last i heard. Try elfeed. https://plus.google.com/+XahLee/posts/5JrhNjhtXRT
Emacs Lisp: Command to Extract URL (updated code. Now works on both single/double quoted string.)
Emacs's Mode Line Suggestions (repost)
Emacs Keybinding: the Power of Key Sequences (minor update)
there's a ergoemacs keybinding for the editor Light Table. See: https://github.com/nikitakit/LightTable-ErgoEmacs
Tweet it, link to it, buy. Thank you.
emacs lisp: twitterfy-shorten text
(require 'xfrp_find_replace_pairs) (require 'xeu_elisp_util) (defun xah-twitterfy () "shorten words for twitter." (interactive) (let* ((bds (get-selection-or-unit 'block)) (p1 (elt bds 1)) (p2 (elt bds 2))) (replace-pairs-region p1 p2 '( [" are " " r "] [" you " " u "] [" and " " ＆ "] [", " "，"] ["..." "…"] [". " "。"] ["。 " "。"] ))))
it seems that many emacs users don't know these commands. Now and then i hear people surprised by their existence after n years of using emacs. Emacs: List/Delete/Highlight Matching Lines, Sort/Reverse Lines
updated the command to delete current file. Now, will also do backup for buffers that's not a file. Emacs Lisp: Delete Current File
Vim: How to Remap the Escape Key? (on its own page)
fixed “xah-backward-block” Emacs: Move Cursor by Paragraph or Text Block
ergoemacs-mode is now in GNU ELPA http://elpa.gnu.org/packages/ergoemacs-mode.html
i want to especially thank my friend Xue Fuqiao (aka xfq) for the suggestion and helping the process.
DAS Keyboard 4 Professional keyboard
DAS came out with a new keyboard. DAS Keyboard 4 Professional keyboard
pity, it's the same old PC form keyboard, ones that whack your hand.
hacker news discussion https://news.ycombinator.com/item?id=7979073
emacs lisp: what does “prog1” do?
thanks to Dan Lentz
emacs: ergoemacs-mode link change
ergoemacs-mode news, from Matthew L Fidler. Link is changed
https://ergoemacs.github.io/ergoemacs-mode/ ← old https://ergoemacs.github.io/ ← new
the change is made because: before, when you check out, you get some 100 mega bytes of stuff, which includes the ergoemacs-mode website and all the images about layout.
now, the code and home page are separate github projects.
- ergoemacs-mode package: https://github.com/ergoemacs/ergoemacs-mode
- ergoemacs-mode home page: https://ergoemacs.github.io/
- ergoemacs-mode home page source code: https://github.com/ergoemacs/ergoemacs.github.io
be sure to update your links.
there's automatic redirect. But some link with specific URL may break, Matt is fixing them. Thanks Matt.
emacs: xah fly keys package
for those of you heavy keyboard tinkers, i've pulled dependent commands into xah-fly-keys.
download at https://github.com/xahlee/xah-fly-keys
if you have issue, just file bug report there.
i'll incorporate this into ergoemacs-mode as a theme one day.
there are 2 parts to my keybinding. One is fast-repeat commands, and these are mostly cursor movement commands and text deletion commands. These are in xah-fly-keys, which is also what ergoemacs-mode is about. Typically, these are top 20 commands you use most frequently, and everybody use all of them every minute. 〔☛ Emacs: Fast-repeat vs Non-fast-repeat Commands ＆ Keys〕
the other part is the hundreds other emacs commands. I've designed a key set for them, as key sequences, 95% complete. Right now they are in my emacs init file. I'll write about it down the road, and push it into xah fly keys.
xah fly keys home page ergoemacs-xah Mode. (naming is yet to be resolved. Not sure it should be ergoemacs-xah or ergoemacs-vi or xah-fly-keys.)
Programing Language: Fundamental Problems of Lisp (minor update)
ergoemacs's 7 years old
;; version 1.0, 2007-08-01. first version.
so, next month, ergoemacs's gonna be 7 years old. The original site: ErgoEmacs Keybinding: a Ergonomics Based Keyboard Shortcut System
Past Articles by Date
- • 2014-06
- • 2014-05
- • 2014-04
- • 2014-03
- • 2014-02
- • 2014-01
- • 2013-12
- • 2013-11
- • 2013-10
- • 2013-09
- • 2013-08
- • 2013-07
- • 2013-06
- • 2013-05
- • 2013-04
- • 2013-03
- • 2013-02
- • 2013-01
- • 2012-12
- • 2012-11
- • 2012-10
- • 2012-09
- • 2012-08
- • 2012-07
- • 2012-06
- • 2012-05
- • 2012-04
- • 2012-03
- • 2012-01
- • 2011-12
- • 2011-11
- • 2011-10
- • 2011-09
- • 2011-06
- • 2011-04
- • 2010-12
- • 2010-09
- • 2010-05