evil-qemacs/qestyles.h
Charlie Gordon 5af9d29a2e searching: many improvements
- clean search and replace code
- fix point position upon matches in forward and backward directions
- prevent reverse search from find overlapping matches
- hilite current match
- add style search-match to hilite the current match in incremental-search
  defaults to cyan / magenta
- C-l centers the window
- C-q quotes next character in incremental search
- C-w grabs the word at point
- C-y grabs from point to next end of line
- A-b cycles unihex hex and normal search
- A-w toggles word matching
- A-y yanks last kill in search string
- add same control keys to query-replace command
- fix searching and replacing in hex and unihex modes
- wrap search after failure
- pass search data as u32 buffer
- add eb_insert_u32_buf(b, offset, buf, len) to insert unicode code points
- add window.offset_end -> offset of first char beyond the window
- add qestate.emulation_flags to select between standard emacs behaviour and
  alternate behaviours in internal commands
- fix do_center_cursor() when point is before window start
- add do_center_cursor_maybe() to center window if point is not visible
- allow C-q to quote DEL key (ASCII 127)
2015-08-15 13:08:41 +00:00

92 lines
3.4 KiB
C

/* root style, must be complete */
STYLE_DEF(QE_STYLE_DEFAULT, "default",
QERGB(0xf8, 0xd8, 0xb0), QERGB(0x00, 0x00, 0x00),
QE_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)
/* default style for HTML/CSS2 pages */
STYLE_DEF(QE_STYLE_CSS_DEFAULT, "css-default",
QERGB(0x00, 0x00, 0x00), QERGB(0xbb, 0xbb, 0xbb),
QE_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",
COLOR_TRANSPARENT, QERGB(0x80, 0xf0, 0xf0),
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)