Xah Emacs Blog Archive 2024-01
updates
- Emacs: Show Variable Value and Doc
- 🆕 Emacs: Search Variable by Name
- emacs init: List of Hooks
- Emacs: Show Function Documentation
- Emacs: Search Function by Name
- 2024-03-30
- Emacs: Xah Wolfram Mode 📦
- rename
xah-wolfram-replace-special-chartoxah-wolfram-replace-named-chars, and added more chars. renamexah-wolfram-replace-regexp-pairs-regiontoxah-wolfram--replace-regexp-pairs - 2024-03-31
xah-wolfram-replace-name-charsadded more chars. syntax for special char, the backslash, no longer shows bad coloring.
- 2024-03-30
- Emacs: xah-get-thing.el 📦
- new,
xah-get-pos-of-word,xah-get-pos-of-word-or - new.
xah-get-pos-of-symbol,xah-get-pos-of-symbol-or
updates and new.
- Emacs Keys: Define Key ⌨
- 🆕 Emacs Keys: Good and Bad Key Choices
- 🆕 Emacs Keys: Swap CapsLock Control
- Emacs: Why You Should Not Swap CapsLock and Control
- 🆕 Emacs: Close Buffer
- xahemacs key system:
- all major mode keys start with tab.
- all user defined keys start with delete key.
- all emacs commands start with space (in Xah Fly Keys).
updates
- 2024-03-25
- Emacs: Xah HTML Mode 📦
xah-html-pre-tag-to-new-filemajor rewrite. xah-html-major-modes removed.xah-html-htmlize-regionand other minor refactor.xah-html-clone-file-in-linkrewrite.- 2024-03-28
- massive internal change.
- new,
xah-html-add-byline, xah-html-author-info
- Elisp: Number
- Elisp: Equality Test
- Elisp: If then else (Conditional)
- Elisp: Sequence. Iteration Guide
updated
massive update. get XahEmacs
Xah Emacs Packages updates
- xah-fly-keys.el
- rename xah-get-block-pos to xah-get-pos-of-block
- xah-get-thing.el
- major rewrite. some 6 or so functions, many return a vector instead of cons.
- xah-css-mode.el
- completion now work on empty spot or line
- xah-elisp-mode.el
- completion now work on empty spot or line. added all seq- keywords. now require xah-get-thing.el
- xah-html-mode.el
- use many new functions in xah-get-thing.el
- massive refactor, now 7 files.
- xah-html-browser.el
- xah-html-cmd.el
- xah-html-engine.el
- xah-html-keywords.el
- xah-html-linkify.el
- xah-html-mode.el
- xah-html-path.el
- xah-js-mode.el
- completion now work on empty spot or line. now require xah-get-thing.el . lot other misc fixes
- xah-powershell-mode.el
- completion now work on empty spot or line. now require xah-get-thing.el
- xah-python-mode.el
- completion now work on empty spot or line. now require xah-get-thing.el
- xah-wolfram-mode.el
- completion now work on empty spot or line. xah-wolfram-get-bounds-of-block removed. xah-wolfram-get-bounds-of-block-or-region removed. new is xah-get-pos-of-block new is xah-get-pos-of-block-or
- 🆕 Elisp: Number
code update
- 2024-03-21
- Emacs: Xah Fly Keys 📦
xah-run-current-filemajor rewrite. Now uses xah-run-current-file-dispatch to dispatch to special cases. Removed compiling java and allow user to pass in options. Removedxah-run-current-file-before-hook,xah-run-current-file-after-hook.
- 2024-03-21
- Emacs: Xah Wolfram Mode 📦
xah-wolfram-eval-regionnew. key may changexah-wolfram-run-scriptchanged parameter, major rewrite.xah-wolfram-run-script-print-lastnew. also changed key forxah-wolfram-run-script-print-all
- 2024-03-21
- Emacs: Xah Elisp Mode 📦
- added all seq- keywords and map-
- 2024-03-22
- Emacs: Xah Go Mode 📦
xah-go-run-current-filenew.
- 2024-03-19
- Emacs: xah-get-thing.el 📦
- new:
xah-get-block-pos,xah-get-block-pos-or,xah-get-pos-of,xah-get-pos-of-or. they return a vector instead of cons. so they can be used withseq-setqandseq-let.
- 2024-03-19
- Emacs: Xah HTML Mode 📦
- major internal change.
xah-get-bounds-of-thing-or-regionetc are replaced byxah-get-pos-ofetc. almost all commands are affected, but should be no behavior change. saved 100 lines of code.
- 2024-03-19
- Emacs: Xah Fly Keys 📦
- internal change. now use
seq-setq.xah-get-bounds-of-blockandxah-get-bounds-of-block-or-regionremoved. replaced byxah-get-block-posandxah-get-block-pos-or. diff is the new return vector. old return cons.
- 2024-03-17
- Emacs: Xah Wolfram Mode 📦
xah-wolfram-run-scriptnow async, major fix bug. thanks to ytzemih.xah-wolfram-eval-current-linenew
- 2024-03-17
- Emacs: Xah Fly Keys 📦
xah-run-current-filefix a bug on callingxah-wolfram-run-scriptif exist.
major updates on regex
- unix programer's idiocy on ASCII obsession and the damage it has done.
- https://youtu.be/QXQr4Vh3OEU?t=1867
- Xah Talk Show 2023-08-26 Emacs 29 Features
emacs font-lock-reference-face gone
- 2024-03-15
- Emacs: Xah Fly Keys 📦
xah-escape-quoteschanged keyxah-smart-deletefixed a error whenuniversal-argumentis called and cursor is on the right of a string quote. thanks to zadca123 for report.
- 2024-03-12
- Emacs: Xah HTML Mode 📦
- major change.
xah-html-langcode-mapis replaced by xah-html-langcode-table and xah-html-langcode-fname-ext-table. was alist, now hashtable. - better keys. now arrow keys for navigating tags. e.g. see
xah-html-goto-matching-tag. andxah-html-join-tagsnow has key n.
- 2024-03-09
- Emacs: Xah AutoHotkey (AHK) Mode 📦
- updated, and renamed
xahk-modetoxah-ahk-mode.
- 2024-03-06
- Emacs: Xah Fly Keys 📦
xah-insert-ascii-angle-bracketnew. thanks to jamesni.
- 2024-03-05
- Emacs: Xah HTML Mode 📦
- added support for fsharp pre code.
xah-html-image-to-linkbetter boundary check
- 2024-03-05
- Emacs: Xah Elisp Mode 📦
- fix coloring for property symbols that contain hyphen
minor update
reviewed with minor edit.
now, a system for setting up org-mode keys for Xah Fly Keys, so you don't have to press control.
added section visual box, and other misc update.
- Elisp: Cursor Position Functions
- Elisp: Text Editing Functions
- Elisp: Mark, Region, Active Region
- Elisp: Get Buffer String
- Elisp: Get Line Begin/End Position, or Move To
- Elisp: Cut Copy Paste, kill-ring
- Elisp: Get Text at Cursor (thing-at-point)
- Elisp: Find Replace Text in Buffer
- Elisp: Interactive Form
added section visual box, and other misc update.
- 2024-03-01
- Emacs: Xah Dired Mode (xah-dired.el) 📦
xah-list-empty-dirsnow output in its own buffer
major update.
- 2024-02-28
- Emacs: Xah HTML Mode 📦
xah-html-validate-xml-buffernow output to own buffer, still need more to do so that user can click to jump to error- key change for
xah-html-prev-opening-tag,xah-html-next-opening-tag,xah-html-goto-matching-tag - removed
xah-html-add-section-to-h2-region,xah-html-add-section-to-h3-region
- 2024-02-28
- Emacs: Xah Wolfram Mode 📦
- Name completion is now tab space by default. Indentation is tab tab. Many misc tweaks on abbrev and template.
code update
- code update
- Emacs: Convert File Line Ending 📜
- 2024-02-27
- Emacs: Xah HTML Mode 📦
xah-html-convert-to-jpgnow insert new below. (was above)xah-html-resize-imgnow insert new below. (was above)
- code update. prevent bad error of arg type, by adding check for nil
- Emacs: xah-fix-datetime 📜
added new info
- 2024-02-20
- Emacs: Xah Fly Keys 📦
- moved global set key f7 for
xah-fly-leader-key-map, outside xah-fly-use-control-key. thanks to Jacob L.
- 2024-02-20
- xah-elisp-util.el
xah-fix-datetimeadded a error check if input doesn't contain digits. this prevent cryptic error about wrong arg type.
- 2024-02-20
- Emacs: Xah HTML Mode 📦
- now
xah-html-insert-taghas key tab space. not tab tab. xah-html-pre-tag-to-new-fileno longer has key C-b. because the keybinding no always work, because its temp bind to the major mode. no have good solution now. bind a global key yourselfxah-html-make-citationnow check if date is valid, else cryptic error about wrong arg type.
- Best Keyboards for Emacs
- updated
- 2024-02-13
- Emacs: Xah Fly Keys 📦
kill-rectanglenow has key (space r q), was (space r g) (dvorak notation).yank-rectanglenow has key (space r k), was (space r r) (dvorak notation).- Reason: the q is qwerty x, for cut. the new keys are more compatible with many other commands's keys in Xah Fly Keys, ending in qwerty x for cut, v for paste. plus , now hand alternates, as in most Xah Fly Keys keybinding style.
xah-slash-to-double-backslashnow has key space r / . was space r k. (dvorak notation)- Rule about changing key is, maybe 1 key per year.
- xah-punctuation-regex now is just ascii double quote. used by
xah-backward-punct,xah-forward-punct. i think this is better default. you can set them to any regex.
- 2024-02-13
- Emacs: Xah Find Replace (xah-find.el) 📦
- removed returning a list of changes for all commands. the idea was, when called in lisp, it return the list of changes. in practice, when called interactively, the usually big return list printed into message buffer is very annoying. there is a proper way to fix it, but no have time now. also, to properly do return list in lisp call, i have to remove bunch of generated buffer and display too.
dark theme with WolframLang code, Emacs: Xah Wolfram Mode 📦
screenshot for fun and history
red light and dark theme
now, at night when lights are off, wife sleeping, i now turn on dark theme.
- emacs init: Set Color Theme
- Emacs: Color Theme Gallery
- PowerShell: Toggle Dark Theme 📜
- CSS: Media query prefers-color-scheme (dark theme)
Apple is great, in that it can auto turn dark theme when sun goes down. Microsoft Windows cannot.
also, now when sun is down, my room is lit in red (red bulb), and all my screen is red tinted. (turn off the blue hue). Red is soothing.
- 2024-01-30
- Emacs: Xah HTML Mode 📦
xah-convert-youtube-url-seconds-to-minute-secondnewxah-html-all-urls-to-linkfixed a bug when there is selection.xah-html-convert-to-jpgnow prints size.
yay Sacha Chua is doing emacs vids
- https://www.youtube.com/watch?v=Pc2kpqgg8pU
- Yay Emacs! 2024-01-21: Org Mode custom links, Spookfox, choosing what to hack on, and more
- by Sacha Chua
- 2024-01-21
- 2024-01-27
- Emacs: Xah Elisp Mode 📦
- added keywords •
length<•length=•length>
new example. insert per item vs join as string and insert once.
new section on switch buffer, display buffer.
- 2024-01-23
- Emacs: Xah HTML Mode 📦
xah-html-youtube-normalize-urlnew
- 2024-01-23
- Emacs: Xah CSS Mode 📦
- fixed syntax color for css variable containing hyphen or lowline
code update
major re-org and update.
- 2024-01-20
- Emacs: Xah Fly Keys 📦
- removed
xah-forward-quote,xah-forward-quote-twice,xah-forward-quote-smart. - added back
xah-backward-punct(key 1),xah-forward-punct(key 2), xah-punctuation-regex (these were removed few months ago) xah-backward-left-bracket,xah-forward-right-bracket, now do not stop at straight double quote. (revert the experimental change about a month ago)
- 2024-01-16
- Emacs: Xah Dired Mode (xah-dired.el) 📦
- new functions
xah-move-file-to-dirxah-open-python-docxah-empty-trashxah-list-emacs-backupxah-delete-emacs-backupxah-list-empty-filesxah-delete-empty-filesxah-list-empty-dirsxah-delete-empty-dirs
- 2024-01-15
- Emacs: Xah HTML Mode 📦
- new
xah-html-move-source-file-path, separated fromxah-html-rename-source-file-path
- Elisp: File and Directory Functions
- 🆕 Elisp: Get File Info
- Elisp: File Path Functions
- Elisp: Walk Directory, List Files
- 2024-01-14
- Emacs: Xah Dired Mode (xah-dired.el) 📦
xah-dired-unravel-dir,xah-dired-bundle-marked-files. new.
- 2024-01-12
- Emacs: Xah Find Replace (xah-find.el) 📦
xah-find--print-header, fixed a bug introduced in recent month that adds header in output twice. now the output buffer is named *xah-find out*
- 2024-01-12
- Emacs: Xah Fly Keys 📦
xah-run-current-fileoutput buffer is now *xah-run output*. was *xah-run*.xah-cycle-hyphen-lowline-spaceinternal code change.
- 2024-01-12
- Emacs: Xah HTML Mode 📦
xah-html-make-link-defunctnow works on iframe.xah-html-make-iframe-defunctis new command.xah-html-pre-tag-to-new-filenow use bat-mode (builtin) instead of dos-mode (external)xah-html-encode-ampersand-entityandxah-html-decode-ampersand-entitynow prints a message.
- 2024-01-12
- Emacs: Xah Unicode Mode 📦
- renamed xub-mode.el to xah-unicode-mode.el
- xah-unicode-emoji-info, new, experimental
- 2024-01-01
- Emacs: Xah Find Replace (xah-find.el) 📦
- xah-find commands now use the same output buffer, do not generate a new each time.
- 2024-01-01
- Emacs: Xah Fly Keys 📦
xah-backward-left-bracket,xah-forward-right-bracket, now stop at straight double quote. (experimental)
Xah Talk Show 2024-02-26 Ep539 Svalboard Datahand, First Impression
Richard Stallman Figurine