zoukankan      html  css  js  c++  java
  • Mac下使用Emacs

    * Mac下使用Emacs

    ** 终端打开
    在`~/.zshrc`配置文件中增加如下脚本
    ```shell
    #!/bin/bash    
    # -----------------------------------------------------------------    
    # FileName: sh-mac-emacs.sh    
    # Date: 2020-05-16    
    # Author: jiftle    
    # Description: MacOS下启动Emacst,服务模式    
    # -----------------------------------------------------------------    
    EMACSPATH="/Applications/Emacs.app/Contents/MacOS"

    alias emacs='${EMACSPATH}/Emacs "$@"'
    alias ec='${EMACSPATH}/bin/emacsclient --c'
    ```
    执行脚本,让配置生效
    `source ~/.zshrc`

    ** 让Emacs以后台服务方式运行(加快启动速度)
    ```shell
    emacs --daemon
    ```
    ** 客户端方式启动
    ```
    ec tmp.md
    ```

  • 相关阅读:
    数据结构之c++感悟
    常见linux系统中RPM包的通用命名规则
    scripts
    http
    iscsi
    RHCE认证经典考题
    数据库
    配置空客户端邮件
    配置nfs服务
    Python版本的7大排序
  • 原文地址:https://www.cnblogs.com/jiftle/p/12901404.html
Copyright © 2011-2022 走看看