Kevin Ryde | 4 Feb 00:06
Picon
Picon

dired-visit-history.el

This is a spot of code I've used to make dired file visits go into the
usual file-name-history.  It's a good way to make that history more like
all the recent files you visited -- though perhaps whether you want that
or only explicit find-files is a personal preference :).

;;; dired-visit-history.el --- add dired visited files to find-file history

;; Copyright 2009, 2011 Kevin Ryde

;; Author: Kevin Ryde <user42 <at> zip.com.au>
;; Version: 1
;; Keywords: files, dired, history
;; URL: http://user42.tuxfamily.org/dired-visit-history/index.html
;; EmacsWiki: DiredMode

;; dired-visit-history.el is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as published
;; by the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;;
;; dired-visit-history.el is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
;; Public License for more details.
;;
;; You can get a copy of the GNU General Public License online at
;; <http://www.gnu.org/licenses/>.

(Continue reading)

Kevin Ryde | 4 Feb 00:17
Picon
Picon

weblint.el

This is a few lines I've been using to run the "weblint" html syntax
checker whenever saving a .html file.  It's fast enough to run every
time and keeps you out of trouble when hand editing html.

Rumour has it the big sgml tools can run fancy checks against a declared
dtd or whatever.  But if like me you're not smart enough for all such
stuff then give this a try instead :).

;;; weblint.el --- run the weblint program

;; Copyright 2011 Kevin Ryde

;; Author: Kevin Ryde <user42 <at> zip.com.au>
;; Version: 1
;; Keywords: wp
;; URL: http://user42.tuxfamily.org/weblint/index.html
;; EmacsWiki: HtmlMode

;; weblint.el is free software; you can redistribute
;; it and/or modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 3, or (at your
;; option) any later version.
;;
;; weblint.el is distributed in the hope that it will
;; be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
;; Public License for more details.
;;
(Continue reading)

Kevin Ryde | 4 Feb 00:47
Picon
Picon

unicode-disp.el v.5

This is a bit of a window display table hack I've used for a while to
mangle unicode chars to something viewable on a latin1 tty.  It's very
limited but might inspire other or similar things.

Exactly what you want to see for undisplayables tends to be a matter of
personal preference and/or how often you strike offending chars.  The
quote marks are probably the most common nonsense encountered.
Multi-char replacements tend to make a mess of table columns etc.

;;; unicode-disp.el --- display-table fallbacks for some unicode chars

;; Copyright 2008, 2009, 2010, 2011, 2012 Kevin Ryde
;;
;; Author: Kevin Ryde <user42 <at> zip.com.au>
;; Version: 5
;; Keywords: i18n, unicode, display
;; URL: http://user42.tuxfamily.org/unicode-disp/index.html
;;
;; unicode-disp.el is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by the
;; Free Software Foundation; either version 3, or (at your option) any later
;; version.
;;
;; unicode-disp.el is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
;; Public License for more details.
;;
(Continue reading)

Andreas Röhler | 1 Mar 14:30
Picon

which-field - return field number cursor is in

Cheers,

Andreas

--
http://launchpad.net/python-mode
http://launchpad.net/s-x-emacs-werkstatt/
Attachment (which-field.el): text/x-emacs-lisp, 1820 bytes
_______________________________________________
gnu-emacs-sources mailing list
gnu-emacs-sources <at> gnu.org
https://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Gmane