Liking xemacs meta-A to call set-mark-command:
(defun php-hook ()
""
(define-key php-mode-map [(meta a)] 'set-mark-command))
(add-hook 'php-mode-hook 'php-hook)
(require 'php-mode)
I don't care to recall how many times I have had to resurrect this arcane formula over the years.
And php-mode is in portage for emacs, but not xemacs...
2007/11/21
2007/11/15
What big documentation you have
I used kdoc to some effect previously. It was a good habit to get into.
doxygen is the generator of choice where I am at the moment.
The incantation I stumbled on involves:
doxygen is the generator of choice where I am at the moment.
The incantation I stumbled on involves:
$ doxygen -g proj.dox
$ vi proj.dox
...
ALWAYS_DETAILED_SEC = YES
JAVADOC_AUTOBRIEF = YES
EXTRACT_ALL = YES
INPUT = x.h y.h ...
GENERATE_MAN = YES
...
$ doxygoen proj.dox
The html is ok and I like the man pages it spits out.
2007/11/14
Command Lines to Forget
Things I find useful to keep handy...
Installing CPAN modules somewhere other than in the system perl directories
perl Makefile.PL INSTALL_BASE=/home/me/perl
perl Makefile.PL PREFIX=/home/me/perl
Generating usable postscript from man pages
groff -man -Tps apage.3pm >apage.ps
Landscape pages from a2ps
a2ps --columns=1 -f 9 -r -o RESULTS.ps RESULTS.txt
Validate XML against an external DTD
xmllint --noout --postvalid --dtdvalid the.dtd the.xml
Extracting an rpm to the current directory
rpm2cpio foo.rpm | cpio --extract --verbose --preserve-modification-time --no-absolute-filenames --make-directories
Installing CPAN modules somewhere other than in the system perl directories
perl Makefile.PL INSTALL_BASE=/home/me/perl
perl Makefile.PL PREFIX=/home/me/perl
Generating usable postscript from man pages
groff -man -Tps apage.3pm >apage.ps
Landscape pages from a2ps
a2ps --columns=1 -f 9 -r -o RESULTS.ps RESULTS.txt
Validate XML against an external DTD
xmllint --noout --postvalid --dtdvalid the.dtd the.xml
Extracting an rpm to the current directory
rpm2cpio foo.rpm | cpio --extract --verbose --preserve-modification-time --no-absolute-filenames --make-directories
Subscribe to:
Posts (Atom)