갑자기 무언가가 발생했을 때, 저는 .emacs 파일로 엉망이었습니다. .emacs 파일을 편집 할 수 없습니다. 나는 이맥스는 파일 자체를 삭제하는 것을 시도했다하지만 다시 내가 다시 이맥스를 시작할 때마다 앞으로 계속.emacs 파일을 편집하고 저장할 수 없습니다. 오류; 심볼의 함수 정의가 무효입니다 : auto-update-file-header
Symbol’s function definition is void: auto-update-file-header.
: 나는 시도하고 파일을 저장 한 후 수정할 때마다, 그것은 나에게 오류를 제공합니다. 여기
내 이맥스 파일에 포함 된 내용입니다 :(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-names-vector
["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" "#8cc4ff" "#eeeeec"])
'(custom-enabled-themes (quote (manoj-dark)))
'(package-selected-packages (quote (color-identifiers-mode flycheck))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(require 'package)
(add-to-list 'package-archives
'("MELPA Stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-refresh-contents)
(add-hook 'after-init-hook #'global-flycheck-mode)
(add-hook 'after-init-hook 'global-color-identifiers-mode)
(add-to-list 'custom-theme-load-path "/Users/kjr132/.emacs.d/themes")
(set-cursor-color "#0a9dff")
(provide 'init-themes)
(add-to-list 'load-path' "~/.emacs.d/")
(package-install 'color-identifiers-mode)
(autoload 'auto-make-header "header2")
(add-hook 'write-file-hooks 'auto-update-file-header)
(add-hook 'emacs-lisp-mode-hook 'auto-make-header)
(add-hook 'c-mode-common-hook 'auto-make-header)
(add-hook 'tex-mode-hook 'auto-make-header)
(add-to-list 'load-path "~/.emacs.d")
(defun my-compilation-hook()
(when (not (get-buffer-window "*compilation*"))
(save-selected-window
(save-excursion
(let* ((w (split-window-vertically))
(h (window-height w)))
(select-window w)
(switch-to-buffer "*compilation*")
(shrink-window (- h compilation-window-height)))))))
(add-hook 'compilation-mode-hook 'my-compilation-hook)
파일은 emacs에서 필요하지만, 그 자체로는 다시 생성되지 않습니다. 나는 당신이 운명이라고 생각한다; D –