提示コードですが以下のエラーが下記の設定ファルのError部で発生してしまいます。これはなぜでしょうか?調べましたが原因がわかりません。
エラー参考: https://emacs.stackexchange.com/questions/59773/symbol-s-function-definition-is-void
Error
Warning (initialization): An error occurred while loading ‘/home/Shigurechan/.emacs.d/init.el’: Symbol's value as variable is void: global To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the ‘--debug-init’ option to view a complete error backtrace.
lisp
1;; パッケージ 2(require 'package) 3 (when (require 'package nil t) 4;; ;; パッケージリポジトリを追加 5;; (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) 6(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) 7;; (add-to-list 'package-archives '("ELPA" . "http://tromey.com/elpa/")) 8 ;; インストールしたパッケージにロードパスを通してロードする 9 (package-initialize) ) 10 11;; auto-complete 12(require 'auto-complete) 13(require 'auto-complete-config) 14(if global-auto-complete-mode t) 15 16 17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Error ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 18(if global ac-complete-mode-map "\M-TAB" 'ac-next) ;; キーバインド 19;;(if define-key ac-complete-mode-map "\C-n" 'ac-next) ;; 20;;(if define-key ac-complete-mode-map "\C-p" 'ac-previous) ;; 21 22

回答1件
あなたの回答
tips
プレビュー