专栏名称: 程序猿
本微信公众号:imkuqin,为程序员提供最新最全的编程学习资料的查询。目前已经开通PHP、C/C++函数库、.NET Framework类库、J2SE API查询功能。
目录
相关文章推荐
码农翻身  ·  对阿里离职员工万字长文,我的一点儿想法 ·  7 小时前  
阿里云云栖号  ·  亚太唯一!阿里云Serverless计算产品 ... ·  昨天  
程序员的那些事  ·  趣图:真 AI、真 LLM、真 API… ·  3 天前  
蚂蚁技术AntTech  ·  天玑实验室全新升级 聚焦“AI+产业创新” ·  昨天  
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

}







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