Skip to content

emacs28 起動時に ~/.emacs でエラーが出ている #58

@tsutsui

Description

@tsutsui

メールで報告をもらったので登録。

emacs 28.2 を起動すると以下のメッセージが表示される、とのこと

Warning (initialization): An error occurred while loading ‘/home/mikutter/.emacs’:

Symbol's function definition is void: set-default-font

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. Disable showing Disable logging

https://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html
を参考に以下のようにするとメッセージは出なくなるものの詳細は確認必要、とのこと

--- .emacs.orig
+++ .emacs
@@ -10,7 +10,7 @@

 ; font settings
 (cond (window-system
-  (set-default-font "Luxi Mono-10")
+  (add-to-list 'default-frame-alist '(font . "Luxi Mono-10"))
   (set-fontset-font (frame-parameter nil 'font)
      'unicode
      '("VL Gothic" . "unicode-bmp"))))

そもそも現状の設定もどこから持ってきたのかすっかり忘れてしまったので思い出すところから。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions