我正在尝试自定义我的Emacs / OrgMode,并且在使用日历时遇到了对齐的问题。见图here
我尝试自定义一些calendar-*
变量,例如
calendar-intermonth-spacing
,calendar-intermonth-header
或calendar-column-width
,但这些变化没有帮助。
是否始终可以在日历视图中获得正确的对齐方式?
答案 0 :(得分:0)
查看函数face-remap-add-relative
:https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Remapping.html
以下是一个例子:
(defun set-buffer-to-courier ()
(face-remap-add-relative 'default '(:family "Courier" :height 120)))
(add-hook 'calendar-mode-hook 'set-buffer-to-courier)