Tuesday, May 17, 2005

Getting JDE 2.3.5 working with XEmacs 21.4.5 in Gentoo

(all items done as normal user, assuming emerge privileges)
download cedet 1.0 beta 3
download elib
download jde
emerge app-xemacs/sgml
emerge app-xemacs/os-utils
create ~/.semanticdb
untar cedet, elib and jde in the same directory
from the cedet dir: make EMACS=/usr/bin/xemacs
read INSTALL and add appropriate lines to init.el/customize.el
from jde dir update lisp/makefile to point to the appropriate directories
then make jde
add appropriate load-paths and that's it!
;;;jde stuff here
(add-to-list 'load-path (expand-file-name
(add-to-list 'load-path (expand-file-name
(add-to-list 'load-path (expand-file-name "~/.xemacs/jde/cedet-1.0beta3b/ede"))
(add-to-list 'load-path (expand-file-name
(add-to-list 'load-path (expand-file-name
(add-to-list 'load-path (expand-file-name
(add-to-list 'load-path (expand-file-name "~/.xemacs/jde/jde-2.3.5/lisp"))
(load-file "~/.xemacs/jde/cedet-1.0beta3b/common/cedet.el")

(require 'jde)


Friday, May 13, 2005

xemacs: typing over or deleting selections

Took too long to find this. for some reason pending-del *doesn't*
install when emerging xemacs. BUT, you can emerge it after, "emerge
pc". Then select "options->keyboard & mouse->delete key..."

delete selection in xemacs gentoo

Took too long to find this. for some reason pending-del *doesn't*
install when emerging xemacs. BUT, you can emerge it after, "emerge

`turn-on-pending-delete' is an interactive autoloaded Lisp function
-- autoloads from "pending-del"

Turn on pending delete minor mode unconditionally.

so I suggest reading the pending-del package. M-x locate-library RET
Adrian Aichner Jan 13 2002, 2:01 pm show options
Newsgroups: comp.emacs.xemacs
From: Adrian Aichner <adr...@xemacs.org> - Find messages by this author
Date: 13 Jan 2002 20:00:50 +0100
Local: Sun,Jan 13 2002 2:00 pm
Subject: Re: Auto-delete-selection??
Reply to Author | Forward | Print | Individual Message | Show original
| Report Abuse

>>>>> "John" == John Davin <jda...@andrew.cmu.edu> writes:

John> Hi, sorry if this is a stupid question but I haven't been
John> able to find a solution on the web.

I'm trying to turn on Auto-delete-selection in xemacs 21.4 I

have done this before in xemacs 21.1 but it is different in

John> 21.4. In the Options menu under Keyboard+Mouse it says
John> "Delete Key Deletes Selection" which sounds like what I want

but the option is grayed out and won't let me select it. I

(locate-library "pending-del")
"c:\\Program Files\\XEmacs\\xemacs-packages\\lisp\\pc\\pending-del.elc"

Ergo, you see to be missing the "pc" XEmacs package.

Install it and live happily ever after.

Tuesday, May 03, 2005

CPU freq stepping

Decided I'd like to have more than 40 minutes of battery from the Centrino laptop when unconnected and noticed that CPU throttling didn't seem to be active. So, here's what I did to enable it:
(main source of info: http://forums.gentoo.org/viewtopic.php?t=248572&highlight=)
1. emerged cpufreqd cpufrequtils

2. Had to update kernel .config:
# CPU Frequency scaling

3.Rebuilt the kernel

4. Logged in as root, and then "cpufreq-set -f 600000" instantly dropped my clock to 600Mhz, "cpufreq-set -f 1700000" raised it back up. This nice for on-the-fly custom tweaking. "cpufreq-set -g ondemand" is the real beauty, because this governor manages only increments the clock when it's needed. Keeps it @600mhz when not needed.

Trick now is to add this to a startup script.