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)

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: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 | 27 Jan 00:40
Picon
Picon

help-xref-elfiles.el v.3

This is a couple of lines I made to buttonize ".emacs" and "foo.el" in
docstrings, going to those those files either user-init-file for .emacs
or the usual locate-library for .el files.

.el filenames in docstrings are usually in add-on libraries mentioning
related things etc.  Within emacs itself of course cross references are
usually to a symbol, mode name, etc.

The buttonizing matches anything filename-like since there's no specific
delimiters.  I suppose demanding quotes like `foo.el' or `.emacs' could
be sure to make them unambiguous, though words ending ".el" are close
enough in practice.

;;; help-xref-elfiles.el --- buttonize foo.el and .emacs filenames in docstrings

;; Copyright 2011, 2012 Kevin Ryde

;; Author: Kevin Ryde <user42 <at> zip.com.au>
;; Version: 3
;; Keywords: help
;; URL: http://user42.tuxfamily.org/help-xref-elfiles/index.html
;; EmacsWiki: CategoryHelp

;; help-xref-elfiles.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.
;;
(Continue reading)

Lawrence Mitchell | 19 Jan 12:28
Picon

f90-interface-browser.el --- Parse and browse f90 interfaces


You write (or work on) large, modern fortran code bases.  These
make heavy use of function overloading and generic interfaces.  Your
brain is too small to remember what all the specialisers are
called.  Therefore, your editor should help you.

This file allows you to parse the interfaces and such like in
your fortran code base, and presents you with a find-tag like,
and ebrowse-like interface to them.  It's far from perfect, but
it's better than nothing.

Current sources are attached, also available on github at
https://github.com/wence-/f90-iface

Lawrence

;;; f90-interface-browser.el --- Parse and browse f90 interfaces

;; This file is NOT part of Emacs.

;; Copyright (C) 2011 Lawrence Mitchell <wence <at> gmx.li>
;; Filename: f90-interface-browser.el
;; Created: 2011-07-06

;; COPYRIGHT NOTICE

;; This program 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 2 of the
;; License, or (at your option) any later version.
(Continue reading)

Thien-Thi Nguyen | 19 Jan 11:01

inhibit-backup-locally

I do this a lot (what a dare-devil),
and note a handful of usages in Emacs.
Maybe it can go in files.el?

(defun inhibit-backup-locally ()
  "Make `backup-inhibited' buffer-local and set it to t."
  (set (make-local-variable 'backup-inhibited) t))
Ivan Kanis | 8 Dec 19:26
Face

export bbdb fields to ispell personal dictionary

Hi Roland,

Attached is version 1.0 of bbdb-ispell.el. I think it includes all the
modifications you requested. Let me know if you would like further
improvement. It would be nice if it get included in bbdb 3.0.

Take care,
-- 
Ivan Kanis
http://kanis.fr

Let a fool hold his tongue and he will pass for a sage.
    -- Publilius Syrus
;;; bbdb-spell.el --- export bbdb record to spell dictionary

;;; Commentary:

;; This is version 1.0

;; This code will export your bbdb entries to your spell personnal
;; dictionary. To run the export run the following command
;;
;; M-x bbdb-spell-export
;;

;;; THANKS:
;;
;; Roland Winkler for constructive criticism
(Continue reading)

Ivan Kanis | 2 Dec 20:40
Face

Export bbdb name to aspell personal dictionary

Hi,

I got tired of people's name being highlighted red when composing
e-mail with flyspell. So this bit of code does an export of peoples
first and last name from bbdb to aspell custom dictionaries.

You need to set the variable ivan-bbdb-aspell-dictionary to a list of
personal dictionaries. Then run M-x ivan-bbdb-export-aspell.

http://kanis.fr:/vcs/emacs/init/ivan-bbdb.el

Roland, maybe we could include it in bbdb 3.0?

Take care,
--

-- 
Ivan Kanis
http://kanis.fr

A lie gets halfway around the world before the truth has a chance to
get its pants on.
    -- Winston Churchill
Ivan Kanis | 1 Dec 10:58
Face

Electric command in sh mode

Hi,

I have implemented electric command for shell script. It will re indent
when entering '}', 'fi', 'done', etc.. If there is interest I can write
a patch to include it in emacs proper.

http://kanis.fr:/vcs/emacs/init/ivan-shell.el
--

-- 
Ivan Kanis
http://kanis.fr

When faced with a challenge, look for a way, not a way out.
    -- David Weatherford
Oleksandr Gavenko | 21 Nov 23:47
Picon
Gravatar

jdone 0.4

 * Implement message posting from command line!
 * Add hook to record entry closing from Org enabled buffers.
 * Add install target for GNU Make.
 * **IMPORTANT**!! Some function in ``jdone.el`` was renamed! If you use only
   function from ``README`` you shall not worry about this.
 * Update definitions to include customization information.
 * Further docs improvement (internal file format was described, new
   installation instruction was added, links to various jdone releted resources
   was added).

Home page: http://jdone.sourceforge.net/
README: http://jdone.sourceforge.net/README.html
CHANGES: http://jdone.sourceforge.net/CHANGES.html

--

-- 
Best regards!
Oleksandr Gavenko | 17 Nov 01:07
Picon
Gravatar

jdone 0.3

tag:t0.3, 2011-11-17.
=====================

 * **IMPORTANT**!! Fix bug in ``jdone.el`` and ``jdone-cgi-simple.bash``
   (together 2 bugs from previous release). Both non-critical for user data, but
   they do not allow use jdone in normal way.
 * Update docs.
 * Improve build script.

Home page: http://jdone.sourceforge.net/
README: http://jdone.sourceforge.net/README.html
CHANGES: http://jdone.sourceforge.net/CHANGES.html

--

-- 
Best regards!

Gmane