0
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.

QLColorCodeの見た目をEmacsのTango-dark風にする

Last updated at Posted at 2021-07-02

QLColorCode

macOSでソースコードをハイライトするQuickLookプラグイン
https://github.com/anthonygelibert/QLColorCode

QLColorCodeのテーマシステム

以下の場所にテーマが格納されている(「パッケージの内容を表示」でプラグイン内のファイルを開くことが可能)
~/Library/QuickLook/QLColorCode.qlgenerator/Contents/Resources/themes

Screen Shot 2021-07-02 at 14.32.23.png

カスタムテーマの作成

"solarized-dark.theme"を複製して"emacs-tango-dark.theme"を編集

emacs/etc/themes/tango-dark-theme.elを参考にした

QLColorCode.qlgenerator/Contents/Resources/themes/emacs-tango-dark.theme
Description="Emacs Tango Dark"

Categories = { "dark" }

Default        = { Colour="#eeeeec" }
Canvas         = { Colour="#2e3436" }
Number         = { Colour="#eeeeec" }
Escape         = { Colour="#e9b96e" }
String         = { Colour="#e9b96e" }
StringPreProc  = { Colour="#e9b96e" }
BlockComment   = { Colour="#73d216" }
PreProcessor   = { Colour="#e090d7" }
LineNum        = { Colour="#eeeeec" }
Operator       = { Colour="#eeeeec" }
LineComment = BlockComment
Interpolation  = Escape

Keywords = {
  { Colour= "#b4fa70" },
  { Colour= "#8cc4ff" },
  { Colour= "#e9b2e3" },
  { Colour= "#fce94f" },
}

テーマを適用する

 $ defaults write org.n8gray.QLColorCode darkTheme emacs-tango-dark

同じような見た目になった

Screen Shot 2021-07-02 at 14.43.09.png

0
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
0
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?