首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏EmacsTalk

    设置 emacsclient 为文件默认打开程序

    本文介绍一种将 emacsclient 设置为文件默认打开程序的方式,适用平台 macOS。 1. Run Shell Script , Pass input 设为 as arguments ,并输入以下内容: /Applications/Emacs.app/Contents/MacOS/bin/emacsclient 在 Finder 中找到需要修改打开程序的文件,按 M-i ,在 Open With 子栏中选择刚才导出的应用,并点击 Change All 修改默认程序 这样以后在打开相同后缀名的文件时,就会用 emacsclient

    1.3K10编辑于 2022-07-26
  • 来自专栏EmacsTalk

    Emacs Server 启动方式探讨

    顾名思义,Server 模式只需要启动一次,后续使用时通过 emacsclient 进行连接即可。 You can use emacsclient to connect to that Emacs process. Error: server did not start correctly 笔者经过一番探索,发现其实可以直接通过 emacsclient 来直接启动 server 模式,命令如下: emacsclient

    1.1K20编辑于 2022-07-26
  • 来自专栏ExASIC

    Emacs的Server Client模式

    EmacsClient allows one to open a file for editing in an already running Emacs. Because it doesn’t start a new Emacs instance at each invocation, you can set up EmacsClient as the default 启动Client端编辑文件 emacsclient xxx.v 启动时,emacs会与server通信,把文件名传递给server,让server打开文件,再在client编辑。 emacsclient --alternate-editor="" xxx.v 或者 emacsclient -a="" xxx.v 当然,Emacs启动速度慢也可能是你配置文件里要加载的东西太多了,或者有 manateelazycat.github.io/emacs/2019/05/12/emacs-optimize-startup-speed.html 参考资料: https://www.emacswiki.org/emacs/EmacsClient

    1.2K30编辑于 2022-03-29
  • 来自专栏EmacsTalk

    在 Emacs 中编辑 crontab

    一般来说,编辑 crontab 时可以用 crontab -e ,它会读取 EDITOR 环境变量来决定需要打开的编辑器,比如: EDITOR=emacsclient crontab -e 这时会用 emacsclient

    1.3K20编辑于 2023-03-01
  • 来自专栏Brian

    Emacs setup for Go Development

    Emacs.app/Contents/MacOS/Emacs-x86_64-10_5' alias eme='emacs -nw' alias ems='emacs --daemon&' alias emc='emacsclient -c ' alias emt='emacsclient -t ' alias ec="emacsclient -e '(kill-emacs)'" Go 安装 现在需要安装GoLang,Go安装可以通过以下两种方式

    4.1K70发布于 2018-04-03
  • 来自专栏编舟记

    怎样才算学会PythonPython 实践基础

    有功夫在Terminal中装一个emacsclient,然后下载一个oh-my-zsh的插件emacsclient,就可以很愉悦地在Terminal中使用Emacs编辑文件了。 $ te hello_world.py # te: aliased to /Users/qianyan/.oh-my-zsh/plugins/emacs/emacsclient.sh -nw """

    1.2K20发布于 2018-08-17
  • 来自专栏用户1880875的专栏

    Emacs 系列(一):抛掉一切,投入 Emacs 和 org 模式的怀抱

    /bin/bash exec emacsclient -c -a "" "$@" 如果没有 emacs 进程存在的话,就会创建一个新的 emacs 进程,否则的话就直接使用已存在的进程。

    1.2K10发布于 2021-09-23
  • 来自专栏EmacsTalk

    Emacs 29.1 版本发布了

    Emacsclient 新选项 -r: 复用现有的 GUI frame,如果没有的话,则新创建一个 新选项 -w: 超时时间,如果 Emacs 没有在规定时间内响应,那么 client 就会自动退出。

    1.1K20编辑于 2023-09-06
  • 来自专栏深度学习与python

    用了VS Code、IDEA等十几款编辑器后,我总结出优秀编辑器的特质

    它允许你启动一个 emacs 实例并将 emacsclient 连接到它,从而彻底避免了加载时间。非常厉害,非常有用!

    2.8K10发布于 2020-11-06
  • 来自专栏力哥聊运维与云计算

    CentOS7/RHEL7 systemd详解

    self-documentingtexteditor [Service] Type=forking ExecStart=/usr/bin/emacs--daemon ExecStop=/usr/bin/emacsclient

    2K41发布于 2019-06-28
  • 来自专栏信数据得永生

    Git 中文参考(二)

    目前支持以下值: “man”:像往常一样使用 man 程序, “woman”:使用 emacsclient 在 emacs 中启动“woman”模式(这只适用于 emacsclient 版本 22

    1.6K10编辑于 2024-06-26
领券