- alias emacs='emacs -font -adobe-courier-bold-r-*-*-20-*-*-*-*-*-*-*'
25 May, 2006
Slow Font Change in Emacs
As the title implies my emacs would always take its sweet time changing the font from courier 12 (default) to adobe-courier--...20 *** etc. Apparently, it's much quicker if you keep that option out of .emacs and create an alias with a -font option. E.g.
05 May, 2006
Fixme Comments in emacs
- C++
(font-lock-add-keywords
'c++-mode
'(("\\<\\(FIXME\\)" 1 font-lock-warning-face t)))
(modify-face (quote font-lock-warning-face) "Red" "yellow" nil t nil t nil nil)
- Perl
'perl-mode
'(("\\<\\(FIXME\\)" 1 font-lock-warning-face t)))
(modify-face (quote font-lock-warning-face) "Red" "yellow" nil t nil t nil nil)
- Also the more decorations - the merrier
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
(setq font-lock-maximum-size nil)
(setq font-lock-support-mode 'jit-lock-mode)
(setq jit-lock-stealth-time 0)
(setq font-lock-maximum-decoration t)
(setq font-lock-maximum-size nil)
(setq font-lock-support-mode 'jit-lock-mode)
(setq jit-lock-stealth-time 0)
Skip a word with Ctrl right/left arrow
Brillant!! Finally found out how to make this work in xterm.
Put the following in your .inputrc
## rxvt
Put the following in your .inputrc
## rxvt
"\eOd": backward-word
"\eOc": forward-word
## xterm
"\e[1;5D": backward-word
"\e[1;5C": forward-word
"\eOc": forward-word
## xterm
"\e[1;5D": backward-word
"\e[1;5C": forward-word
"Less is more" and other useful exports and aliases
alias any='find . -iname *$1*'
alias grep='grep --color'
alias purge='rm *~ ; rm \#*'
alias nemacs='emacs -nw'
alias pico='nano'
alias pss='ps -ef |grep'
alias more='less'
alias bc='bc -ql'
alias lprodd='lpr -o page-set=odd'
alias lpreven='lpr -o page-set=even'
export PS1=" \u \w $ "
export today=$(date +%d%b%y)
alias grep='grep --color'
alias purge='rm *~ ; rm \#*'
alias nemacs='emacs -nw'
alias pico='nano'
alias pss='ps -ef |grep'
alias more='less'
alias bc='bc -ql'
alias lprodd='lpr -o page-set=odd'
alias lpreven='lpr -o page-set=even'
export PS1=" \u \w $ "
export today=$(date +%d%b%y)
Subscribe to:
Posts (Atom)