专栏名称: 程序猿
本微信公众号:imkuqin,为程序员提供最新最全的编程学习资料的查询。目前已经开通PHP、C/C++函数库、.NET Framework类库、J2SE API查询功能。
目录
相关文章推荐
OSC开源社区  ·  Dev.Together'25 | ... ·  昨天  
稀土掘金技术社区  ·  前端如何实现图片伪防盗链,保护页面图片 ·  昨天  
蚂蚁技术AntTech  ·  论文秀Live#21 ICSE 2025 ... ·  2 天前  
程序猿  ·  Python有史以来最强大的挑战者终于出现 ·  3 天前  
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

}







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