初めに
catalinaに変えて,dark-modeを使い始めたんですが...terminal上のemacs のorg-modeで表示される文字が暗くて見えません.具体的には,dark-blueとかmidnight-blueです.なんで,それを変えようとしてはまりました.照度を上げると見えるんですが,エコじゃないんで,出来るだけ低い照度でしかも視認性がよくって,さらに心が躍るcolorを追求していきます.
現在の設定では次のようになっています.
![]() |
![]() |
---|---|
ruby-mode | org-modea |
こんなのがいいよというお勧めがあったらコメください.
Emacsで、特定の文字の色を変更する
ちょっとメモとる手間なやり方が書かれていますが,下の手順で簡単に可能.
- M-x describe-face
- returnでより詳細な設定表示で,customize_this_faceを選ぶとそのまま編集画面
- Foregound -> Chooseで選択
- M-x list-faces-display
defaultに戻す
- M-x list-faces-displayでfaceのtitleを選んだ段階で,
- Revertボタンを押す
- 挙動が選べる
- 2(Erase custamization)でdefaultに戻る
emacs color
themeのactivation
(add-to-list 'load-path "/path/to/alect-themes")
(add-to-list 'custom-theme-load-path "/path/to/alect-themes")
M-x load-theme RET alect-light, black, dark
でいくはずですが,行かない.
(setq alect-display-class '((class color) (min-colors 256)))
をinit.elに足すと行くようになりました.重たくなりそうな感じ.やめようか.
最終的に
- terminalの調整: terminalはbasicなんですが,ANSIカラーの青系統を明るめに設定.
- emacs color: themeを変えるのはやめました.defaultのcolorの多彩さがrubyを書くときに気持ちがいいから.でも,org-modeのtitleとかは読みづらいです.そこで,org-document-info, titleをcolor-21に変更しています.
- line high light: ln-lineを使っているのですが,これも変更しています.これは相当悩みました.
init.el
(global-hl-line-mode)
;; (set-face-background hl-line-face "gray13")
(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.
'(hl-line ((t (:inherit highlight :background "cyan"))))
'(org-document-info ((t (:foreground "color-21"))))
'(org-document-title ((t (:foreground "color-21" :weight bold)))))
hl-line
hl-lineは遅くなるという記述があります.確認できていませんが,本当なら下を参考に.
- http://emacs.rubikitch.com/global-hl-line-mode-timer/
- https://stackoverflow.com/questions/4495406/hl-line-mode-emacs-color-change
- source ~/git_hub/ruby_docs/qiita/qiita_post/emacs_color.org