tcstory
V2EX  ›  Emacs

遇到 symbol's value as variable is void

  •  
  •   tcstory · Nov 30, 2015 · 3100 views
    This topic created in 3889 days ago, the information mentioned may be changed or developed.

    感觉很奇怪的问题,自己使用的是 el-get 来管理插件,昨晚看了一下 magit 的文档,想给 magit 设置一个快捷键,就根据文档的提示设置了(global-set-key (kbd "C-x g") ’ magit-status),结果却遇到了上面提到的问题,这到底是这么回事呢?
    其实我在用 company-tern 的时候也遇到了类似的问题,然后找到资料使用下面的方法来解决了

    (with-eval-after-load 'company
         (add-to-list 'company-backends 'company-tern))
    

    我比较感觉奇怪的是,不是 el-get 帮我加载了插件了吗?为什么还会遇到这样的问题.

    el-get 的配置如下

    (add-to-list 'load-path "~/.emacs.d/el-get/el-get")
    
      (unless (require 'el-get nil 'noerror)
         (with-current-buffer
                (url-retrieve-synchronously
                        "https://raw.githubusercontent.com/dimitri/el-get/master/el-get-install.el")
                    (goto-char (point-max))
                        (eval-print-last-sexp)))
    
      (add-to-list 'el-get-recipe-path "~/.emacs.d/el-get-user/recipes")
      (el-get 'sync)
    
    3 replies    2015-11-30 18:07:48 +08:00
    yangxin0
        1
    yangxin0  
       Nov 30, 2015
    我不须换用 recipe , 直接写了一个 init-package.el 里面写 (el-get-bundle magit)
    yangxin0
        2
    yangxin0  
       Nov 30, 2015
    el-get 有点不好用的地方在于, 它回去很多目标仓库下载, 但是有仓库被墙, ssl 有时候间歇抽风
    tcstory
        3
    tcstory  
    OP
       Nov 30, 2015
    居然没有人,好可怜啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   890 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:41 · PVG 04:41 · LAX 13:41 · JFK 16:41
    ♥ Do have faith in what you're doing.