Конфигурация .emacs перезаписывается при запуске emacs - PullRequest
0 голосов
/ 31 октября 2018

Когда я редактирую файл с помощью emacs, конфигурация, сохраненная в файле .emacs, читается (я могу судить об этом по размеру шрифта). Однако не проходит и секунды, и размеры окна и шрифта уменьшаются. Кажется, что моя пользовательская конфигурация переопределяется. Я не знаю, где хранится эта дополнительная конфигурация.

Система: Light Ubuntu 18.04

Мой .emacs файл:

(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.
 '(setq tab-stop-list t))
(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.
 '(default ((t (:family "DejaVu Sans Mono" :foundry "PfEd" :slant normal :weight normal :height 143 :width normal)))))

; disable the wellcome screen
(setq inhibit-startup-screen t)

;; rebind C-x C-b to invoke buffer-menu rather than list-buffers
(global-set-key "\C-x\C-b" 'buffer-menu)

; open list of buffers in active window
(global-set-key "\C-x\C-b" 'buffer-menu)

; Directory to place the backup files
(setq backup-directory-alist `(("." . "~/.emacs.d/backup_files")))

; Disable Large file size warning
(setq large-file-warning-threshold nil)

;; show line numbers
(global-linum-mode 1)

1 Ответ

0 голосов
/ 12 ноября 2018

После @ prosoitos рекомендации из раздела комментариев в исходном вопросе:

  • создал файл $ HOME / .Xresouces, содержащий следующую строку emacs*font: DejaVu Sans Mono 16
  • в терминале, введите xrdb $HOME/.Xresouces
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...