This feed contains pages with tag "emacs".
I have been meaning to fix this up for a long time, but so far real work keeps getting in the way. The idea is that C-C t brings you to this week's time tracker buffer, and then you use (C-c C-x C-i/C-c C-x C-o) to start and stop timers.
The only even slightly clever is stopping the timer and saving on quitting emacs, which I borrowed from the someone on the net.
- Updated dependence on mhc removed.
- Updated 2009/01/05 Fixed week-of-year calculation
The main guts of the hack are here.
The result might look like the(works better in emacs org-mode. C-c C-x C-d for a summary)
So I spent a couple hours editing Haskell. So of course I had to spend at least that long customizing emacs. My particular interest is in so called literate haskell code that intersperses LaTeX and Haskell.
The first step is to install haskell-mode and mmm-mode.
apt-get install haskell-mode mmm-mode
Next, add something like the following to your .emacs
(load-library "haskell-site-file") ;; Literate Haskell [requires MMM] (require 'mmm-auto) (require 'mmm-haskell) (setq mmm-global-mode 'maybe) (add-to-list 'mmm-mode-ext-classes-alist '(latex-mode "\\.lhs$" haskell))
Now I want to think about these files as LaTeX with bits of Haskell in them, so
I tell auctex that
.lhs files belong to it (also in .emacs)
(add-to-list 'auto-mode-alist '("\\.lhs\\'" . latex-mode)) (eval-after-load "tex" '(progn (add-to-list 'LaTeX-command-style '("lhs" "lhslatex")) (add-to-list 'TeX-file-extensions "lhs")))
In order that the
environment is typeset nicely, I want any latex file that uses the
lhs to be processed with the script
lhslatex (hence the
LaTeX-command-style). At the moment I just have an
lhs.sty, but in principle it could contain useful definitions,
e.g. the output from lhs2TeX on a file containing only
The current version of lhslatex is a bit crude. In particular it assumes you want to run pdflatex.
The upshot is that you can use AUCTeX mode in the LaTeX part of the buffer
(i.e. TeX your buffer) and haskell mode in the
(i.e. evaluate the same buffer as Haskell).
In the eternal battle against spam, I have recently written an extension to the Wanderlust mail reader to help maintain address whitelists.
It consists of two parts: wl-whitelist.el manages the user
interface, and passes whitelisted addresses to the server as fake
messages in a special mailbox. This sounds lame, but it allows me
to take advantage of the nice offline functionality built in to
On the server (e.g. in a
cron job), I run a python script to
extract the addresses so the the rest of my baroque anti-spam system
can use them.
- Now supports blacklisting as well as whitelisting
- Updated scan-whitelist.py with workaround for python library bug
This blog is produced with emacs and blorg.el To get blorg to load I had to change
in blorg.el. Also, it seems like blorg really wants to be loaded after org, so I loaded it like the following.
: '(require 'blorg))