1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

use-package custom-face 反映しない

Posted at

use-package custom-face 反映しない

うちの環境悪いだけかな・・・
その辺よくわかんないけど、フックを使って解決しました。
解決したコードだけ貼っていきますね。

~/.emacs.d/inits/555-org-mode.el
(use-package org
  :ensure t
  :defer t
  :mode ("\\.org\\'" . org-mode)
  :interpreter ("org" . org-mode)

  :hook
  (org-mode
   . (lambda ()
       (progn
         ;; /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org.el.gz
         ;; /usr/local/Cellar/emacs-mac/emacs-27.2-mac-8.3/share/emacs/27.2/lisp/org/org-faces.el.gz
         (set-face-attribute 'org-tag        nil :background "gray97" :foreground "gray50" :box '(:line-width 1 :color "black") :weight 'regular)
         (set-face-attribute 'org-warning    nil :foreground "black")
         (set-face-attribute 'org-level-1    nil :foreground "#cb4b16" :weight 'bold :height 1.75)
         (set-face-attribute 'org-level-2    nil :foreground "#859900" :weight 'bold :height 1.5)
         (set-face-attribute 'org-level-3    nil :foreground "#268bd2" :weight 'bold :height 1.25)
         (set-face-attribute 'org-level-4    nil :foreground "#b58900" :weight 'bold :height 1.1)
         (set-face-attribute 'org-level-5    nil :foreground "#2aa198" :weight 'normal :height 1)
         (set-face-attribute 'org-level-6    nil :foreground "#6c71c4" :weight 'normal :height 1)
         (set-face-attribute 'org-level-7    nil :foreground "#d33682" :weight 'normal :height 1)
         (set-face-attribute 'org-level-8    nil :foreground "#dc322f" :weight 'normal :height 1)
         )))
  )

おまけ

(use-package org-bullets
  :ensure t
  :commands (org-bullets-mode)
  :init (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
  ;;:custom (org-bullets-bullet-list '("" "" "" "" "" "" "" "" "" ""))
  :custom (org-bullets-bullet-list '("" "" "" "" "" "" "" "" "" "" ""))
  :hook (org-mode . org-bullets-mode))

アイコンフォントが使えるエディタで見ると、上の文字化け見れると思う。

あと、大変お世話になったサイト様
Unicode一覧表 http://www.shurey.com/js/works/unicode.html

ローカルに保存して、フォント記述を埋め込んで使っています。

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- saved from url=(0043)http://www.shurey.com/js/works/unicode.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="keywords" content="Unicode,UTF-8,コード一覧,コード閲覧,入力補助">
<title>Unicode一覧表</title>
<link href="./Unicode一覧表_files/basic.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="http://www.shurey.com/labyrinthenoir.ico">
<style type="text/css">
html,body {
	height: 100%;
    font-family: "MeiryoKeCoNerdSymbols" ;
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?