【问题标题】:I use Emacs with Prelude and want to re/write git-autocommit-mode我将 Emacs 与 Prelude 一起使用,并想重新/编写 git-autocommit-mode
【发布时间】:2014-12-08 11:05:24
【问题描述】:

我应该把源代码放在 .emacs.d 的什么地方?我应该如何发布我的更改?这是我第一次尝试编写 Emacs 模式。目前有哪些表彰?

进展

我不确定我是否做得正确,但我已将以下内容添加到我的

~/.emacs.d/personal/personal.el

(add-to-list 'load-path "~/emacs.d/vendor")
(require 'git-auto-commit-mode)

然后我在供应商目录中执行了“git clone myrepo”。

【问题讨论】:

标签: emacs emacs24 emacs-prelude


【解决方案1】:

我自己没有用过 Prelude,但它有一个 init.el, 这可能是您应该放置一条语句来加载代码的地方。

但如果你真的想自己写 代码,我建议要么转储 Prelude 以支持滚动你的 自己的配置,或完全了解 Prelude 如何工作和构建 最重要的是。中间的任何东西都会导致很多混乱。

这就是我将如何更改git-autocommit-mode

  1. 访问 melpa.org 查找来源:https://github.com/ryuslash/git-auto-commit-mode
  2. 在 github 上 fork 源代码
  3. 克隆我刚刚 fork 的 repo:

    git clone https://github.com/abo-abo/git-auto-commit-mode.git
    
  4. 通过 package.el 卸载 git-auto-commit-mode

  5. 安装use-package
  6. 使用此代码加载您自己的git-auto-commit-mode

    (use-package git-auto-commit-mode
      :load-path "~/git/git-auto-commit-mode")
    
  7. 如果您进行了您认为有用的更改,请打开拉取请求 在 github 上将您的更改合并到源代码库中

【讨论】:

  • 慢慢地,我到了那里。在我执行第一个 Emacs 拉取请求之前,我需要对其进行一段时间的测试。
猜你喜欢
  • 2010-10-30
  • 2016-03-28
  • 2011-05-04
  • 1970-01-01
  • 1970-01-01
  • 2018-05-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多