【问题标题】:Emacs fill column messing up formatting in org agenda and calendar?Emacs 填充列搞乱了组织议程和日历中的格式?
【发布时间】:2014-02-15 21:07:51
【问题描述】:

我妻子的 Emacs 安装(在 Windows 上)有些奇怪。我们认为这是将 C-x C-f(打开文件)与 C-x f(将填充列设置为)混合的结果。症状是日历和组织议程选择屏幕现在都有非常奇怪的格式:

https://www.dropbox.com/s/ymrcnigrvukdyo1/Screen%20Shot%202014-02-02%20at%2016.12.20.png

https://www.dropbox.com/s/xi2rnnh4e84feyx/Screen%20Shot%202014-02-02%20at%2016.13.15.png

我在她的 .emacs 中看不到任何奇怪的东西,如下所示,但我不是 Windows 用户。

 (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.
 '(appmenu-mode t)
 '(cua-mode t nil (cua-base))
 '(emacsw32-max-frames t)
 '(emacsw32-style-frame-title t)
 '(hfyview-quick-print-in-files-menu t)
 '(menuacc-mode t)
 '(noprint-hide-print-in-menus t)
 '(noprint-hide-ps-print-in-menus t)
 '(org-agenda-files (quote ("E:\\emacs\\todo.org")))
 '(org-agenda-ndays 7)
 '(org-agenda-show-all-dates t)
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-start-on-weekday nil)
 '(ourcomments-ido-ctrl-tab t)
 '(rebind-keys-mode t)
 '(recentf-mode t)
 '(sex-mode t)
 '(tabkey2-mode t)
 '(w32-meta-style (quote w32-lr))
 '(w32shell-shell (quote cmd)))
(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 (:inherit nil :stipple nil :background "SystemWindow" :foreground "SystemWindowText" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :foundry "outline" :family "Arial")))))

有人知道如何解决这个问题吗?

【问题讨论】:

标签: emacs org-mode


【解决方案1】:

将家庭设置为“Arial”会导致问题,我不知道为什么。但是删除它对我有用。因此,如果字体系列对您不重要,从 custom-set-faces 中删除 :family "Arial" 将解决问题(您需要重新启动 emacs)

【讨论】:

  • Arial 不是等宽字体。日历的格式取决于等宽字体 - 只有在等宽字体中,各列才会排成一行!
猜你喜欢
  • 1970-01-01
  • 2016-03-31
  • 2020-07-27
  • 1970-01-01
  • 2020-12-13
  • 1970-01-01
  • 1970-01-01
  • 2020-09-13
  • 2012-07-12
相关资源
最近更新 更多