xtodo emacs
emacs xtodo
- write a tutorial , install hunspell howto, add to emacs windows page.
- maybe install flip (convert eol), grep, ex, bzip2, findutils
(when (eq system-type 'windows-nt) ;; 2025-07-01 thanks to ;; https://emacselements.com/getting-spelling-to-work-on-windows.html (require 'ispell) (progn ;; make sure hunspell is in system environment variable PATH (setq ispell-program-name "d:/bin/ezwinports/bin/hunspell.exe") (setq ispell-local-dictionary "en_US") (setq ispell-local-dictionary-alist '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_US") nil utf-8))) (when (boundp 'ispell-hunspell-dictionary-alist) (setq ispell-hunspell-dictionary-alist ispell-local-dictionary-alist)) ;; (setq hunspell-default-dict "en_US") ))
- emacs tutorial, completely redo, generate, emacs lisp function doc tooltip popup, and for xah emacs lisp mode keyword Syntax Coloring.
- example of uncolored functions
dired-get-marked-files
dired-mode
set-buffer-file-coding-system
- Elisp: Generic Map Functions (for hash table, alist, plist)
- readme.txt
;; determine if a elisp function is written in C vs not. (defvar xah-elisp-symbols-c nil "Lisp function written in C") (defvar xah-elisp-symbols-not-c nil "Lisp function defined in lisp") (mapcar (lambda (x) (if (subrp (symbol-function (intern-soft x))) (progn (push x xah-elisp-symbols-c)) (progn (push x xah-elisp-symbols-not-c)))) xah-elisp-all-symbols) (length xah-elisp-all-symbols) 27324 (length xah-elisp-symbols-c) 9319 (length xah-elisp-symbols-not-c) 18005
- 2021-07-04 modify
xah-reformat-lines
if cursor is on a left parenthesis or bracket, just do the bracketed text. if cursor is at beginning of line, just do that line.
- look into how emacs function use keyword params (keyword args)
- look at
define-keymap
for implementing keyword args
- pcomplete destructure, pattern matching
- 2022-02-18 emacs lisp look into
pcomplete-completions-at-point
- emacs. fix why emacs windows on terminal does not show unicode emoji correctly
- Emacs: File Encoding (Unicode, UTF-8)
- Emacs: Declare Encoding for One File (Unicode, UTF-8)
- Emacs Init: Set Default File Encoding (Unicode, UTF-8)
(set-language-environment "utf-8") ;; current-language-environment (set-default-coding-systems 'utf-8) (set-terminal-coding-system 'utf-8) ;; default-terminal-coding-system (set-keyboard-coding-system 'utf-8)
- what are these
describe-personal-keybindings
bind-key
- maybe setup keys in Xah Fly Keys
- C-x RET C-\ set-input-method
- C-x RET F set-file-name-coding-system
- C-x RET X set-next-selection-coding-system
- C-x RET c universal-coding-system-argument
- C-x RET f set-buffer-file-coding-system
- C-x RET k set-keyboard-coding-system
- C-x RET l set-language-environment
- C-x RET p set-buffer-process-coding-system
- C-x RET r revert-buffer-with-coding-system
- C-x RET t set-terminal-coding-system
- C-x RET x set-selection-coding-system
- add more detail
- Elisp: Format String
multi-isearch-buffers
multi-isearch-buffers-regexp
multi-isearch-files
multi-isearch-files-regexp
Open File as Hexadecimal
Alt+x hexl-find-file
. If the file is already opened, Alt+x hexl-mode
.
- emacs problem. when a command uses
completing-read
, and user record a key macro calling that command, it does not work. you need to type the entire word.ido-completing-read
works
;; this works (defun ff () " Created: 2025-04-13 Version: 2025-04-13 " (interactive) (let (xmenu xresult) (setq xmenu (list "aa" "bb" "cc")) (setq xresult (completing-read "Pick one:" xmenu nil t)) (insert xresult))) ;; need more test ;; (ido-completing-read "Pick CSS keyword:" xah-css-all-keywords nil t xword)
;; -*- coding: utf-8; lexical-binding: t; -*- ;; (defun my-number-to-binary (xnum) ;; "Convert a number xnum to its binary representation as a string." ;; (if (< xnum 0) ;; (error "Negative numbers are not supported") ;; (let ((xresult "")) ;; (while (> xnum 0) ;; (setq xresult (concat (number-to-string (mod xnum 2)) xresult)) ;; (setq xnum (/ xnum 2))) ;; (if (string-empty-p xresult) ;; "0" ;; xresult)))) (defun xah-convert-number-base (xint xradix) "Convert a number xint to a list of digits in base xradix" (when (< xint 0) (error "negative not supported")) (when (not (integerp xint)) (error "float number not supported")) (let ((xresult (list))) (while (> xint 0) (push (mod xint xradix) xresult) (setq xint (/ xint xradix))) xresult)) (xah-convert-number-base -2 2) (xah-convert-number-base 3.5 2) (xah-convert-number-base 39 16) ;; (2 7) ;; (defun my-number-to-binary-string (xnum) ;; "return a string of binary representation of number xnum. ;; Created: 2025-07-24 ;; Version: 2025-07-24" ;; (require 'calc-bin) ;; (let ((calc-number-radix 2)) ;; (math-format-radix xnum))) ;; (my-number-to-binary-string 3) ;; "11"
- change side panel
- Elisp: Get Operating System Type
- add
display-graphic-p
to init tutorial
- in my html mode, fix all function so greater and less sign with space around is ok.
- change the search for them to include tag string regex.
- 2025-05-07 mod
xah-html-markdown-to-html
, make it use external app
- 2025-05-07 emacs mod
xah-html-split-section-to-new-page
, make it add js at the end
- 2025-05-07
xah-html-extract-url
- ;; make the command not rely on called-interactively-p. maybe separate it into a interactive wrapper.
- emacs lisp, do the twitter card, at least on the keyboard blog pages
xah-build-thumb-table
xah-add-to-thumb-table
xah-insert-twitter-card
- emacs lisp write a find report version of xah-replace-invisible-char
- fix.
xah-html-relink
jumps when on a p link. need complete rewrite.
- fix. why
xah-html-move-image-file
jiggles a block before inserting image tag.
- look at all my emacs lisp start process or call process, or shell, make it use call process region maybe
dired-goto-file
dired-next-line
dired-get-filename
- doc font-lock-keywords
;; why some have double paren (setq font-lock-defaults '((xah-css-font-lock-keywords))) (setq font-lock-defaults '(xah-css-font-lock-keywords)) ;; should this be nil font-lock-maximum-decoration
- 2022-12-22 download a english dict word list. needed for abbrev system work. Xah Shorthand System (Abbrev Input)
- installing dict
- http://irreal.org/blog/?p=6546
- review or clean
xah-unicode-emoji-only-chars
inxah-unicode-mode.el
- 2021-08-14 move this to main emacs lisp index
- Elisp: Enable Undo in Buffer
- also check Emacs Lisp Misc
xah html mode command changes:
This command was named xah-html-wrap-p-tag
. Changed around 2021-08-17.
xah-html-wrap-p-tag
→xah-html-blocks-to-paragraph
Emacs: HTML, Wrap Paragraph Tags
xah-html-wrap-html-tag
→xah-html-insert-tag
work on emacs lisp
- find emacs lisp doc location of
hippie-expand
, read it.
- find in emacs doc and read
char-fold-to-regexp
- char-fold-include
- search-default-mode
isearch-toggle-char-fold
isearch-toggle-case-fold
isearch-toggle-lax-whitespace
dabbrev-completion
- char-fold-symmetric
emacs lisp XahEmacs key design
2021-08-08 notes. designing a key system for whole XahEmacs
now, with XahEmacs, several packages, with xah-fly-keys system, there needs to be a scheme for the leader keys. For example, gnu emacs has Emacs Keys Overview. I needd a scheme for XahEmacs, so the whole is consistant, as a secondary requirement to key efficiency and ergonomics.
here's outline of current xah-fly-keys
..[hilight] p.replace g.close c.[open] e.[insert] u.switchBuff h.[help] t.[edit] j.copyAll k.pasteOrPrev m.diredJump w.[eval/del]
- 2021-08-09 look at all my commands, if it's a repeatable command, add a t key to repeat, and if have a right/left or up/down or back/forth version, add a keymap
- 2021-07-21 mod
xah-copy-file-path
so C-u first will just copy file name sans directory. - 2021-07-06 add a hook to
xah-run-current-file
so that when golang script is run it'll invoke xah-find-output-mode in the output buffer. - 2021-02-12 add to emacs lisp tutorial
xah-words-word-etymology-linkify
remove the one at Xah Emacs Blog Archive 2018-08 - 2021-04-14 add somewhere 〔Rob Pike and Richard Stallman By Rob Pike. At
https://commandcenter.blogspot.com/2006/06/ 〕 - 2021-04-14 add somewhere 〔Why Do Long Options Start with Two Dashes? By Djm. At
https://blog.djmnet.org/2019/08/02/why-do-long-options-start-with/ 〕 - 2021-02-14 delete
xahsite-web-path-to-filepath
- 2021-01-01 Emacs Key Layout Diagram redo in svg
- 2020-12-21 work in progress Emacs Magit Mode Problem
- 2020-12-19 look into make abbrev run a function
- maybe put somewhere
make-empty-file
. be careful, if you call it and just hit enter for current dir, it wipes out the current file. - 2020-08-28 Emacs: Version Control
- 2020-08-26 emacs has
window-toggle-side-windows
. it can be used to toggle the side pane of treemacs. Thanks to Rick Naam for this tip. read in detail. - Emacs Helm Doc Problem
- Problem of Calling Windows cmd.exe in Emacs Lisp
- 2020-12-15 fix
xah-replace-straight-quotes
so that it won't change things inside html tag. - 2020-08-20 make the atom xml file title bold
- Emacs 27.1 Features (released 2020-08)
xah-bracket-capitalized-words
code updated- write a tutorial on emacs lisp macro
- 2021-08-06 read eshell doc. seems grep , diff, are builtin. • also, find out how to use bash ||.
- 2021-08-06 code update
xah-delete-current-file
Emacs: Delete Current File - 2021-07-17 mod
xah-get-fullpath
at Elisp: Get Script Name at Run Time, Call by Relative Path, maybe to a new page.
- 2022-03-29 emacs this page, maybe no belong to init section Emacs: Setup Soft-Wrap Lines, also, title may be wrong. also, there are lots related pages. need to review and regroup.
- 2022-03-15 emacs lisp need tooltip Emacs: Xah Dired Mode (xah-dired.el)
- 2022-07-04 Emacs as Word Processor: Bold, Underline, Color Texts
- 2022-02-19 make prominent. rename or rewrite to new file, emphasis on color word or line for a file when open. separate out the code. using hook technique. Elisp: Run Elisp Code When File Opens