Here's a similar package I wrote a while ago: use defmodel to define
the calling conventions (and create the dispatching function) and
defmodal to define the implementation for a mode or modes.
modal-functions.el -- make a function which despatches on current
major mode
;;; Time-stamp:
Sorry, that got garbled by the posting system... here is one trimmed
to be narrow enough not to provoke that (I hope):
modal-functions.el -- make a function
which despatches on current major mode
;;; Time-stamp: 2011-03-11 12:04:31 johnstu
;;
;; Copyright (C) 2004, 2006, 2011 John C.
I found a machine I was using didn't have xdvi, so I wrote some elisp
to call dvipng and put the resulting pages together in an Emacs
buffer; then I made it into a major mode, with next and previous
commands, etc. Here it is:
dvi-view.el -- View a DVI file in an Emacs buffer
;;; Time-stamp:
Here's a combined installer and configurer, which defines an
autofetch (like autoload, but downloading from the network -- or
other media) and also conveniently sets up various things it's useful
to have on eval-after-load forms.
This lets you write package descriptions such as:
(use-package vm
Here is a very rudimentary major mode for handling Open Document Format
files. Not fully usable yet, I'm really releasing it to see whether
anyone else is doing something similar, or can do a better job of this
than I can, before I put much more time into it. In the present form,
nested spans will
Just out of curiousity, which keybinding have you replaced? C-x o or
C-x b ?
The keybinding it replaces is actually C-kp-next, but that's because,
in order to reduce the load on my hands (I have RSI) I have a set of
footswitch units daisy-chained onto the keyboard, each unit having
three
There are lots of things that it might be useful to do on getting a RET
keypress- perhaps a return-key-hook would be useful?
Likewise, for some things I've done, I would have found an
end-of-word-typed hook useful, to be triggered whenever the user
types something that ends a word (probably at
I've written a major mode for jpeg files, which displays a more
human-readable interpretation of the meta-data by means of overlays.
The interpretation is not complete yet, but I'll carry on filling it in
as time goes by.
The code is at
Here's one I wrote long ago: a banner text generator, that converts
strings to large ASCII-art letters. It's at
http://www.cb1.com/~john/computing/emacs/lisp/misc/banner.el
___
gnu-emacs-sources mailing list
gnu-emacs-sources@gnu.org
http://www.cb1.com/~john/computing/emacs/lisp/appearance/split-window-multi.el
contains code to put lots of buffers on your screen at once, either
vertically, or horizontally, or in a square grid. You can then pick the
one you want, and do delete-other-windows from it.
Here's one of those commands I wouldn't be without, to avoid all that
typing of buffer names (and all that hurried mistyping of buffer
names).
(defun other-window-or-buffer ()
(interactive)
Switch to the next window, or, if there is only one window, the next
buffer.
If done repeatedly when
Thanks -- I hadn't seen that... it looks much better than mine. I was
starting to go through my collection to share them rather than hoard
them, but now I think I should first go through them to see what I've
duplicated, first!
___
gnu-emacs-sources
12 matches
Mail list logo