LoginSignup
1
2

More than 3 years have passed since last update.

emacs color on terminal for catalina

Posted at

初めに

catalinaに変えて,dark-modeを使い始めたんですが...terminal上のemacs のorg-modeで表示される文字が暗くて見えません.具体的には,dark-blueとかmidnight-blueです.なんで,それを変えようとしてはまりました.照度を上げると見えるんですが,エコじゃないんで,出来るだけ低い照度でしかも視認性がよくって,さらに心が躍るcolorを追求していきます.

現在の設定では次のようになっています.

img img
ruby-mode org-modea

こんなのがいいよというお勧めがあったらコメください.

Emacsで、特定の文字の色を変更する

ちょっとメモとる手間なやり方が書かれていますが,下の手順で簡単に可能.

  1. M-x describe-face
    1. returnでより詳細な設定表示で,customize_this_faceを選ぶとそのまま編集画面
    2. Foregound -> Chooseで選択
  2. 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は遅くなるという記述があります.確認できていませんが,本当なら下を参考に.


  • source ~/git_hub/ruby_docs/qiita/qiita_post/emacs_color.org
1
2
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
2