emacs

it's editor written by emacs lisp which has powerful functions.

to see the release log for M-x view-emacs-news

selection: C-SPC (in emacs, it means to start mark). use arrow key to selection words. kill-ring-save: M-w put the selection into kill ring. yank: C-y paste recent kill ring.

univeral arguments

C-uDigit argument 4
C-u C-uDigit argument 16
C-u C-u ...Digit argument 4n
M-0 to M-9Digit argument 0 to 9
C-0 to C-9Digit argument 0 to 9
C-M-0 to C-M-9Digit argument 0 to 9
C--Negative argument
M--Negative argument
C-M--Negative argument

from Spacemacs to your custom emacs

https://protesilaos.com/emacs/dotemacs#h:98d3abcc-f34e-4029-aabc-740f0b6421f8 this guy writes a lot of customization for his own emacs config. Maybe, I can learn some usages from him.

10 specific ways to improve your productivity with emacs

https://sites.google.com/site/steveyegge2/effective-emacs

Any unnecessary motions is wasted energy and yields sloppy results Emacs offers a fine-grained (dense) control The author says emacs eventually becomes like an extension of your body

Emacs Run in Docker

to add the ip in the xhost's access control list

open -a XQuartz
xhost + $ip

following command should run in the shell of x11 (which is opened by Quartz)

ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
docker run -ti --name emacs\
       -e DISPLAY=$ip:0\
       -e UNAME="emacser"\
       -e GNAME="emacsers"\
       -e UID="1000"\
       -e GID="1000"\
       -v /Users/jing/.spacemacs:/home/emacs/.spacemacs \
       -v /Users/jing/.emacs.d:/home/emacs/.emacs.d \
       -v /Users/jing/Desktop:/mnt/workspace \
       jare/emacs emacs

However, this is still has some problem. Ex. the extension will not load when you run with gui mode. I don't know why.

net-utils (builtin pakcage) have some interesting implementations

For more detial, to see emacs/30.0.60/lisp/net/net-utils.el

github action

https://github.com/marketplace/actions/set-up-emacs

some good packages

emacs lisp api faq

Backlinks

If you like my content,

feel free to buy me a coffee

Enjoy crafting new things

Never stop learning.

Life is the sum of your daily habits.

Find things that you enjoy and please

Doit.

Feel free to connect with me.

Created by potrace 1.16, written by Peter Selinger 2001-2019

© Jing 2024. All rights reserved.