A Fork of QEmacs that hacks a native Vim/Neovim inspired modal state machine directly into it
  • C 94.9%
  • Shell 1.4%
  • Python 1.1%
  • C++ 0.9%
  • Makefile 0.6%
  • Other 1%
Find a file
Charlie Gordon 4be625f5c4 Improve macro handling
* add `macro-counter` variable
* add `QEState` fields `nb_macro_keys_run`, `macro_counter`, `macro_format`.
* add `int find_key_suffix(const char *str, char c)`
* pass `argval` to `do_call_last_kbd_macro` to handle early exit
* add `clear_macro`, `stop_macro`
* add `int check_format_string(const char *fmt, const char *template)`
* do not use `alloca` for `eb_vprintf`
* add `dbuf_str(db)`: null terminate the buffer and return a string pointer.
* add macro commands:
  `edit-last-kbd-macro`, `name-last-kbd-macro`, `insert-kbd-macro`,
  `read-kbd-macro`, `macro-add-counter`, `macro-set-counter`,
  `macro-insert-counter`, `macro-set-format`
* `start-keyboard-macro` restarts macro learning mode if learning already
* add documentation on macro commands
* stop macros upon errors (when ringing the bell)
* stop macros if prompting the user for confirmation
2024-07-28 00:00:03 +02:00
.github/workflows Improve documentation, configure and CI(#31) 2024-05-20 19:43:01 +02:00
cp Update mapping tables 2020-11-07 17:51:16 +01:00
fonts Initial revision 2004-05-29 10:17:37 +00:00
kmap added remove_slash and append_slash path utilities 2008-01-03 09:51:29 +00:00
lang Simplifications 2024-07-28 00:00:03 +02:00
libqhtml Fix clang compiler warnings 2024-02-10 20:29:26 +01:00
modes Simplifications 2024-07-28 00:00:03 +02:00
plugins Pass QEmacsState pointer to all module_init and module_exit functions (#24) 2024-05-19 19:15:08 +02:00
tests Use char32_t for all code point variables and arrays 2022-10-29 19:43:38 +02:00
tools Improve documentation, configure and CI(#31) 2024-05-20 19:43:01 +02:00
.gitignore Use char32_t for all code point variables and arrays 2022-10-29 19:43:38 +02:00
arabic.c Change license to MIT 2023-03-05 02:04:02 +01:00
buffer.c Improve macro handling 2024-07-28 00:00:03 +02:00
cfb.c Change license to MIT 2023-03-05 02:04:02 +01:00
cfb.h Change license to MIT 2023-03-05 02:04:02 +01:00
charset.c Pass QEmacsState pointer to all module_init and module_exit functions (#24) 2024-05-19 19:15:08 +02:00
charset.h Pass QEmacsState pointer to all module_init and module_exit functions (#24) 2024-05-19 19:15:08 +02:00
charsetjis.c Pass QEmacsState pointer to all module_init and module_exit functions (#24) 2024-05-19 19:15:08 +02:00
charsetjis.def Improve completion system 2020-10-27 08:38:12 +01:00
charsetmore.c Pass QEmacsState pointer to all module_init and module_exit functions (#24) 2024-05-19 19:15:08 +02:00
color.c Change license to MIT 2023-03-05 02:04:02 +01:00
color.h Change license to MIT 2023-03-05 02:04:02 +01:00
config.eg Initial post on github 2020-10-24 23:59:54 +02:00
configure remove unused target definitions 2024-07-28 00:00:03 +02:00
cutils.c ocumentation 2024-07-28 00:00:03 +02:00
cutils.h Improve macro handling 2024-07-28 00:00:03 +02:00
display.c Add bell sounds 2024-07-28 00:00:03 +02:00
display.h Add bell sounds 2024-07-28 00:00:03 +02:00
extras.c Add repeat-mode (#34) 2024-05-25 23:37:05 +02:00
fbfrender.c Change license to MIT 2023-03-05 02:04:02 +01:00
fbfrender.h Change license to MIT 2023-03-05 02:04:02 +01:00
haiku.cpp Add bell sounds 2024-07-28 00:00:03 +02:00
html2png.c Add bell sounds 2024-07-28 00:00:03 +02:00
indic.c Change license to MIT 2023-03-05 02:04:02 +01:00
input.c Pass QEmacsState pointer to all module_init and module_exit functions (#24) 2024-05-19 19:15:08 +02:00
kmap.c Change license to MIT 2023-03-05 02:04:02 +01:00
kmaps added more Hebrew keymaps 2007-12-09 23:31:38 +00:00
libfbf.c Change license to MIT 2023-03-05 02:04:02 +01:00
libfbf.h Change license to MIT 2023-03-05 02:04:02 +01:00
libregexp-opcode.h Add regex support for search and replace 2023-03-05 13:34:19 +01:00
libregexp.c Fix clang compiler warnings 2024-02-10 20:29:26 +01:00
libregexp.h Add regex support for search and replace 2023-03-05 13:34:19 +01:00
libunicode-table.h Add regex support for search and replace 2023-03-05 13:34:19 +01:00
libunicode.c Fix linux compilation problems 2023-03-05 14:36:44 +01:00
libunicode.h Add regex support for search and replace 2023-03-05 13:34:19 +01:00
LICENSE Change license to MIT 2023-03-05 02:04:02 +01:00
ligatures Add charset probing functions 2014-03-01 22:37:26 +00:00
Makefile Add repeat-mode (#34) 2024-05-25 23:37:05 +02:00
qe-doc.html Default to is_player mode: qe starts dired when invoked with no arguments 2022-08-28 00:40:58 +02:00
qe-doc.texi Default to is_player mode: qe starts dired when invoked with no arguments 2022-08-28 00:40:58 +02:00
qe-manual.c Improve documentation, configure and CI(#31) 2024-05-20 19:43:01 +02:00
qe-manual.md Improve macro handling 2024-07-28 00:00:03 +02:00
qe.1 Initial revision 2004-05-29 10:17:37 +00:00
qe.c Improve macro handling 2024-07-28 00:00:03 +02:00
qe.h Improve macro handling 2024-07-28 00:00:03 +02:00
qe.tcc Initial revision 2004-05-29 10:17:37 +00:00
qeconfig.h Improve macro handling 2024-07-28 00:00:03 +02:00
qemacs.rdef haiku: add qemacs.rdef icon 2017-03-28 20:11:55 +00:00
qemacs.spec fixed typos, comments 2006-12-09 19:02:07 +00:00
qescript.c Sundries (#28) 2024-05-19 21:32:00 +02:00
qestyles.h Various improvements 2022-09-19 15:16:59 +02:00
README.md Improve documentation, configure and CI(#31) 2024-05-20 19:43:01 +02:00
search.c Improve macro handling 2024-07-28 00:00:03 +02:00
TODO.md Improve macro handling 2024-07-28 00:00:03 +02:00
tqe.c Default to is_player mode: qe starts dired when invoked with no arguments 2022-08-28 00:40:58 +02:00
tty.c Add bell sounds 2024-07-28 00:00:03 +02:00
unicode_join.c Fix clang compiler warnings 2024-02-10 20:29:26 +01:00
unicode_join.h Change license to MIT 2023-03-05 02:04:02 +01:00
unifont.lig Initial revision 2004-05-29 10:17:37 +00:00
unix.c Change license to MIT 2023-03-05 02:04:02 +01:00
util.c Improve macro handling 2024-07-28 00:00:03 +02:00
util.h Improve macro handling 2024-07-28 00:00:03 +02:00
variables.c Improve macro handling 2024-07-28 00:00:03 +02:00
variables.h Change license to MIT 2023-03-05 02:04:02 +01:00
VERSION Add CSV mode 2023-03-13 23:07:26 +01:00
wcwidth.c Update glyph width methodology 2022-09-27 22:30:05 +02:00
wcwidth.h add include guard in wcwidth.h 2022-09-27 22:38:29 +02:00
win32.c Add bell sounds 2024-07-28 00:00:03 +02:00
x11.c Add bell sounds 2024-07-28 00:00:03 +02:00

Quick Emacs (QEmacs)

Welcome to QEmacs! A small but powerful UNIX editor with many features that even big editors lack.

Quick Description

QEmacs is a small text editor targeted at embedded systems or debugging. Although it is very small, it has some very interesting features that even big editors lack:

  • Full screen editor with an Emacs look and feel with all common Emacs features: multi-buffer, multi-window, command mode, universal argument, keyboard macros, config file with C-like syntax, minibuffer with completion and history.

  • Can edit huge files (hundreds of megabytes) without delay, using a highly optimized internal representation and memory mapping for large files.

  • Full Unicode support, including multi charset handling (8859-x, UTF8, SJIS, EUC-JP, ...) and bidirectional editing respecting the Unicode bidi algorithm. Arabic and Indic scripts handling (in progress). Automatic end of line detection.

  • C mode: coloring with immediate update, auto-indent, automatic tags.

  • Shell mode: full color VT100 terminal emulation so your shell works exactly as you expect. Compile mode with colorized error messages, automatic error message parser jumps to next/previous error, works with grep too. The shell buffer is a fully functional terminal: you can run qemacs, vim or even emacs recursively!

  • Input methods for most languages, including Chinese (input methods descriptions come from the Yudit editor).

  • Binary and hexadecimal in place editing mode with insertion and block commands. Unicode hexa editing of UTF-8 files also supported. Can patch binary files, preserving every byte outside the modified areas.

  • Works on any VT100 terminal without termcap. UTF-8 VT100 support included with double width glyphs.

  • X11 support. Supports multiple proportional fonts at the same time (like XEmacs). X Input methods supported. Xft extension supported for anti-aliased font display.

  • Bitmap images are displayed on graphics displays and as ASCII colored text on text terminals, which is handy when browsing files over an ssh connection. (QEmacs uses the public domain stb_image package for image parsing.

Building QEmacs

  • Launch the custom configuration script ./configure. You can list the available options by typing ./configure --help.

  • Type make to compile qemacs and its associated tools.

  • Type make install as root to install it in /usr/local.

QEmacs Documentation

Read the file qe-doc.html.

Licensing

QEmacs is released under the MIT license. (read the accompanying LICENCE file).

Contributing to QEmacs

Please contact the qemacs-devel mailing list.

Authors

QEmacs was started in 2000. The initial version was developped by Fabrice Bellard and Charlie Gordon, who since then, has been maintaining and extending it.