Update on the fu
Just a quick update on the fu from yesterday. First of all I'm working on converting back to xterm again since I've had so much trouble with urxvt. This should probably make some of the stuff done in the fu not needed. I still haven't found a way to get screen to inform about it's presence over ssh yet (even though I've been told it should be possible). The stuff needed for getting 256 colors in screen is different for xterm, but I will not post anything about that since there are lots of good resources to be found on the net already.
Next a tip. If you don't want your bashrc to be generating new hostspecificscreenrcs all the time, you can instead create several different hostspecificscreenrcs and name them .<username><host>screenrc and put the following into your .screenrc:
source $HOME/configfiles/.$HOSTNAME
The reason I haven't done this is I want to be able to roll out my system on new hosts by simply adding a couple of lines to .bashrc and then cloning my configuration git repository on the new host. Thus I don't want to be bothered about making new .screenrc-files when adding a new host.
Finally. The code I posted yesterday for GNU Emacs was flawed. I was so eager to post it on my blog that I didn't discover I wasn't quite finished writing the code. The correct code should be:
(defun set-screen-title () (send-string-to-terminal (concat "\ek" "emacs " (buffer-name) "\e\\"))) (when (and (not window-system) (string= "1" (getenv "LC_SCREEN_RUNNING"))) (add-hook 'window-configuration-change-hook 'set-screen-title) (add-hook 'emacs-startup-hook 'set-screen-title))
- Previous: 15 June 2010 More .emacs fu
- Next: 09 June 2010 Emacs Screen Bash fu
About me
-
- Professional
- Master thesis on security, privacy and availability in GSM-positioning systems at Simula Research Laboratory and University of Oslo - Department of Informatics. Currently working as a senior Java consultant and Liferay tech lead.
-
- Languages of choice
- C, python, perl and lisp
-
- Current interests
- GSM-networks and technology, Emacs, Stumpwm, org-mode, philosophy and ethics, microprocessors, Drupal, Latex and writing.