专栏名称: 程序猿
本微信公众号:imkuqin,为程序员提供最新最全的编程学习资料的查询。目前已经开通PHP、C/C++函数库、.NET Framework类库、J2SE API查询功能。
目录
相关文章推荐
稀土掘金技术社区  ·  用dayjs解析时间戳,我被提了bug ·  2 天前  
京东零售技术  ·  前沿论文分享 | ... ·  4 天前  
程序员的那些事  ·  不到 2 个月,OpenAI 火速用 ... ·  4 天前  
51好读  ›  专栏  ›  程序猿

我是怎样使用Emacs的

程序猿  · 公众号  · 程序员  · 2016-09-03 22:42

正文

请到「今天看啥」查看全文


# The compliment to the script is et, which opens emacs in the terminal

# attached to a daemon

# If you want to execute elisp, pass in -e whatever.

# You may also want to stop the output from returning to the terminal, like

# ec -e "(message \"Hello\")" > /dev/null

# emacsclient options for reference

# -a "" starts emacs daemon and reattaches

# -c creates a new frame

# -n returns control back to the terminal

# -e eval the script

# Number of current visible frames,

# Emacs daemon always has a visible frame called F1

visible_frames () {

emacsclient - a "" - e '(length (visible-frame-list))'

}

change_focus () {

emacsclient - n - e "(select-frame-set-input-focus (selected-frame))" > / dev / null

}







请到「今天看啥」查看全文