summaryrefslogtreecommitdiffstats
path: root/usr.bin/mg/keymap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add transpose-words, ok jasper@.lum2015-12-291-2/+2
| | | | Limited to one iteration until 'undo' is looked into.
* whitespacejasper2015-09-261-2/+2
|
* Add mark-paragraph. ok jasper@lum2015-09-241-3/+5
|
* More unifdef cleanup:bcallah2015-03-191-33/+26
| | | | | | | | | | | -UDIRED_XMAPS and -UFUND_XMAPS: you can't build mg the other way. -DTIOCGWINSZ: you have this if you have term.h Remove a #define TERMCAP which isn't being used. Remove defines for NDIRED_XMAPS, NFUND_XMAPS, and IMAPEXT. They are all defined to be 0 and are only ever used in addition. We don't need to add 0. Simply lines that were using those defines. ok florian@
* Clean up the includes in mg.bcallah2015-03-191-1/+7
| | | | | | | | | | This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
* Change the internal name of the newline function to deconflict with abcallah2015-03-161-3/+3
| | | | | | function of the same name in term.h. This is the first step towards cleaning up mg's includes. No user-visible changes. ok florian@
* Add bounce matching for [] and {} like mg already does with () and likebcallah2014-08-141-5/+11
| | | | | Emacs does. ok florian@
* Shuffle shell-command-on-region around to give shell-command.lum2013-05-221-4/+5
| | | | | ok florian@ jasper@ Testing Sunil Nimmagadda
* Add some cscope support to mg. From Sunil Nimmagadda. Due to somelum2012-06-071-3/+41
| | | | | | | | structural limitations in mg, mg doesn't behave exactly the same as emacs cscope (see the README) but is still very usable. man page bits reviewed by jmc@, otherwise tested and reviewed by myself.
* Remove the conditional directives NO_MACRO and NO_STARTUP.lum2012-04-121-15/+1
| | | | | They have not compiled for numerous years. ok kjell@ millert@
* Add:lum2012-04-111-3/+3
| | | | | | | | 1. C-x h to mark whole buffer. 2. M-| to pipe current region to external command. From Sunil Nimmagadda. Feedback from deraadt@ and myself. ok for man page amendments from jmc@
* Remove the NO_HELP conditional directives. If defined, mg will not compile andlum2012-03-141-15/+1
| | | | | has not done so for numerous years. Not hard to fix, but just remove anyway. ok kjell@ millert@
* Add some ctags support to mg. From Sunil Nimmagadda.lum2011-11-281-3/+6
| | | | | | Man page review and suggestions from jmc@ Revewied and tested by myself, and ok deraadt@
* Add join-line, bound to M-^kjell2011-01-181-2/+2
| | | | | | | Join the current line to the previous. original diff by Henri Kemppainen. minor mod to add undo boundaries. Thanks!
* Add back-to-indentation. (M-m)kjell2011-01-171-2/+2
| | | | | Move the dot to the first non-whitespace character on the current line. from Henri Kemppainen . ok theo
* add a C-c target, so we can use it as a prefix for keybindings.kjell2008-08-271-7/+26
| | | | | | Now you can do something like: global-set-key "\^c\^c" compile in your ~/.mg
* We do not need a whole MODE for blinking one character.kjell2008-06-141-22/+29
| | | | | | | | | | | | | | | | | | both emacsen automatically blink, so mg should too. This can be overridden in your ~/.mg by adding, e.g. global-set-key ")" self-insert-command So, I've eliminated blink mode, and renamed "blink-matching-paren-hack" to "blink-and-insert". It's not just for parens anyway. While I'm here, set up an empty (rescan) target for backtab, so I can bind something convenient to it; e.g. global-set-key "\e[Z" backward-char Finally, remove all references to Scribd. Theo doesn't hate this, though I would hesitate to call it an ok.
* Whitespacekjell2008-06-121-4/+2
|
* Add delete-leading-space, delete-trailing-space,kjell2008-06-111-3/+3
| | | | | indent-current-line utility functions for stripping leading/trailing whitespace, and setting a fixed indent respectively.
* Move backward-paragraph, forward-paragraph to M-{, M-} respectively.kjell2006-08-181-7/+11
| | | | (not M-[, M-]). This is where emacs has it.
* unused functionderaadt2006-07-271-12/+1
|
* greedy use of typedef struct was making code harder to read; ok kjell cloderderaadt2005-11-181-10/+11
|
* Move most of the dired hooks into dired.c. While here, enable somekjell2005-11-071-5/+1
| | | | | | | dired functions that were written, but not bound to keys. No other functional change. Tested by Han Boetes.
* spacingderaadt2005-10-131-2/+2
|
* add the (emacs) toggle-readonly keybinding (C-x C-q).kjell2005-10-131-2/+2
| | | | Also, remove a silly non-emacsism.
* Fix dired mode. Make deletions work, and keystrokes match emacs.kjell2005-10-131-112/+10
| | | | | | | | | * dired-other-window should default to current buffer's path. * Remove redundant code (from Han Boetes) * Move initialization (and since we're here, fix mail-mode initialization too) * Remove redundant keymap in dired.c, and replace it with the better one that was being ignored in keymap.c.
* Enable the 'next-error' (C-x `) keybinding by default.kjell2005-10-111-2/+2
| | | | | Niklas, this one is for you. ok deraadt@, cloder@
* Add find-file-read-only keybinding (c-X c-R), as in emacs.kjell2005-10-061-2/+2
| | | | closes PR4523. Enjoy, jason!
* Add explicit public domain notices to all public domain files.kjell2005-06-141-1/+3
| | | | ok millert@, deraadt@
* add find-alternate-file command and binding for ^X^V; ok cloderjason2005-05-301-2/+2
| | | | (you're welcome kjell)
* This is a no binary change which does:db2005-04-031-57/+56
| | | | | | | | | | - spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification ok henning@
* fix mg's behaviour with regards to files on which we do not havejfb2005-03-091-2/+2
| | | | | | | write access. diff originally from vincent@ and forgotten for a while. ok rohee@, "toss it in, i'll bitch if it doesn't work" henning@
* bind ^Xg to gotoline by defaultderaadt2002-12-091-2/+2
|
* use rescan, not NULL, since ^X-t is not a prefixderaadt2002-09-281-2/+2
|
* activate the two key sequences for undo again; ok art henningderaadt2002-09-261-3/+5
|
* seems c-x c-q is for the vc- mode. remove it.vincent2002-06-271-2/+2
|
* bind C-x C-q to toggle-read-only, just like emacs.vincent2002-06-271-3/+3
| | | | ok deraadt@
* zap the ctrl-x ctrl-v keybinding for find-file-read-only. looks likevincent2002-05-291-2/+2
| | | | | | i need more studying of emacs' keybindings :-) ok art@ (i guess that's what "vincent, zap out the keybinding" meant)
* add a function to visit a file read-only mapped to C-x C-vvincent2002-05-291-2/+2
| | | | ok art@
* * Move to ANSI function definitions.vincent2002-03-111-5/+5
| | | | | | * Add a whole lot of consts where I thought it made sense no ok, but no objections either...
* disable undo until it is fixed to be (1) correct and (2) not crash like it does nowderaadt2002-03-011-5/+3
|
* ^Xu is also an undo charderaadt2002-02-211-2/+4
|
* bind C-_ to undo.art2002-02-201-2/+2
|
* more gosmacsderaadt2002-02-081-3/+3
|
* No need for those extra maps now.art2001-05-241-36/+1
|
* Make the keymap/mode table growable in runtime.art2001-05-241-34/+57
|
* Break out function -> name mappings to an own file.art2001-05-241-314/+1
| | | | Add a possibility to dynamically extend the function table.
* functnames can be const, some spacesmickey2001-05-231-7/+7
|
* Get rid of unnecessary casts of NULL.art2001-05-231-34/+34
|
* export "fundamental_map" that points to the fundamental keymapart2001-05-231-1/+3
|