evil-qemacs/qestyles.h
Charlie Gordon a69bceb37d display: fix various old bugs
- add st_errno in ModeProbeData so dired only matches wildcards if no
  file exists with that exact name (argument passed probe_mode())
- add LF_NOWILDCARD qe_load_file flag to prevent wildcard handling
- display line numbers and terminal right margin in new gutter style
- free EditState:line_shadow display CRCs when changing modes:
  this fixes an old display bug when switching between html and text mode
- added convenient default bindings:
  C-c ~     -> toggle-read-only
  C-c c     -> set-buffer-file-coding-system
  C-c b     -> toggle-bidir
  C-c C-\   -> set-input-method
  C-c l     -> toggle-line-numbers
  C-c t     -> toggle-truncate-lines
  C-c w     -> word-wrap
- disable terminal emulation on shell buffers without the SF_COLOR flag
- only update mark on process output in interactive terminal emulator buffers
- only compute shell current directory on terminal emulator buffers
- auto select mode and character set after 3MB of output
- update wrap_cols on all windows upon shell-refresh (C-l in shell-mode)
- improve shell_get_curpath(): handle debian default prompt
- updated TODOs
2017-05-10 15:46:16 +00:00

97 lines
3.7 KiB
C

/* root style, must be complete */
STYLE_DEF(QE_STYLE_DEFAULT, "default",
QERGB(0xf8, 0xd8, 0xb0), QERGB(0x00, 0x00, 0x00),
QE_FONT_FAMILY_FIXED, 12)
/* system styles */
STYLE_DEF(QE_STYLE_MODE_LINE, "mode-line",
QERGB(0x00, 0x00, 0x00), QERGB(0xe0, 0xe0, 0xe0),
0, 0)
STYLE_DEF(QE_STYLE_WINDOW_BORDER, "window-border",
QERGB(0x00, 0x00, 0x00), QERGB(0xe0, 0xe0, 0xe0),
0, 0)
STYLE_DEF(QE_STYLE_MINIBUF, "minibuf",
QERGB(0xff, 0xff, 0x00), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_STATUS, "status",
QERGB(0xff, 0xff, 0x00), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_GUTTER, "gutter",
QERGB(0xf8, 0x44, 0x00), QERGB(0x3f, 0x3f, 0x3f),
0, 0)
/* default style for HTML/CSS2 pages */
STYLE_DEF(QE_STYLE_CSS_DEFAULT, "css-default",
QERGB(0x00, 0x00, 0x00), QERGB(0xbb, 0xbb, 0xbb),
QE_FONT_FAMILY_SERIF, 12)
/* coloring styles */
STYLE_DEF(QE_STYLE_HIGHLIGHT, "highlight",
QERGB(0x00, 0x00, 0x00), QERGB(0xf8, 0xd8, 0xb0),
0, 0)
STYLE_DEF(QE_STYLE_SELECTION, "selection",
QERGB(0xff, 0xff, 0xff), QERGB(0x00, 0x00, 0xff),
0, 0)
/* Generic syntax coloring styles */
STYLE_DEF(QE_STYLE_COMMENT, "comment",
QERGB(0xf8, 0x44, 0x00), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_PREPROCESS, "preprocess",
QERGB(0x00, 0xff, 0xff), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_STRING, "string",
QERGB(0xf8, 0xa0, 0x78), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_STRING_Q, "string-q",
QERGB(0xf8, 0xa0, 0x78), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_KEYWORD, "keyword",
QERGB(0x00, 0xff, 0xff), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_NUMBER, "number",
QERGB(0xf8, 0xd8, 0xb0), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_FUNCTION, "function",
QERGB(0x80, 0xcc, 0xf0), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_VARIABLE, "variable",
QERGB(0xe8, 0xdc, 0x80), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_TYPE, "type",
QERGB(0x98, 0xf8, 0x98), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_TAG, "tag",
QERGB(0x00, 0xff, 0xff), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_CSS, "css",
QERGB(0x98, 0xf8, 0x98), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_ERROR, "error",
QERGB(0xff, 0x00, 0x00), COLOR_TRANSPARENT,
0, 0)
/* popup / region styles */
STYLE_DEF(QE_STYLE_REGION_HILITE, "region-hilite",
QERGB(0x00, 0x00, 0x00), QERGB(0x80, 0xf0, 0xf0),
0, 0)
STYLE_DEF(QE_STYLE_SEARCH_HILITE, "search-hilite",
QERGB(0x00, 0x00, 0x00), QERGB(0x00, 0x80, 0x80),
0, 0)
STYLE_DEF(QE_STYLE_SEARCH_MATCH, "search-match",
QERGB(0xe0, 0xe0, 0xe0), QERGB(0xf0, 0x00, 0xf0),
0, 0)
/* HTML coloring styles */
STYLE_DEF(QE_STYLE_HTML_COMMENT, "html-comment",
QERGB(0xf8, 0x44, 0x00), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_HTML_STRING, "html-string",
QERGB(0xf8, 0xa0, 0x78), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_HTML_ENTITY, "html-entity",
QERGB(0xe8, 0xdc, 0x80), COLOR_TRANSPARENT,
0, 0)
STYLE_DEF(QE_STYLE_HTML_TAG, "html-tag",
QERGB(0x80, 0xcc, 0xf0), COLOR_TRANSPARENT,
0, 0)