How can I make emacs highlight lines that go over 80 chars?
Another easy option is to run highlight-lines-matching-regexp on the expression .\{81\}. Every line with 81 characters or more will be highlighted with the color of your choice.
Another easy option is to run highlight-lines-matching-regexp on the expression .\{81\}. Every line with 81 characters or more will be highlighted with the color of your choice.
[Edit from non-author: this is from 2010, and the process has been significantly simplified since May 2011. I’ll add a post to this answer with my setup notes as of Feb 2012.] You’ll need to put together a few pieces: Emacs, SLIME (which works perfectly well with Clojure — see swank-clojure), swank-clojure (the Clojure implementation … Read more
Folding is generally unnecessary with emacs, as it has tools that explicitly implement the actions people do manually when folding code. Most people have good success with simple incremental searches. See “foo” mentioned somewhere? Type C-sfoo, find the definition, press enter, read it, and then press C-x C-x to go back to where you were. … Read more
C-x C-f ~/.emacs will take you to it. See the Emacs manual, nodes Init File and Find Init.
This should work: (add-to-list ‘auto-mode-alist ‘(“\\.rr” . R-mode))
Take note of the cygwin-related information on the emacs wiki: http://www.emacswiki.org/emacs/TrampMode I don’t use EmacsW32, but I do successfully use TRAMP over ssh with Cygwin and NT Emacs. I never got TRAMP working without an ssh agent (i.e. prompting for credentials) — as you noticed, it just hangs — but it works fine with one, … Read more
Put this in your .emacs file: ;; Toggle window dedication (defun toggle-window-dedicated () “Toggle whether the current active window is dedicated or not” (interactive) (message (if (let (window (get-buffer-window (current-buffer))) (set-window-dedicated-p window (not (window-dedicated-p window)))) “Window ‘%s’ is dedicated” “Window ‘%s’ is normal”) (current-buffer))) Then bind it to some key – I use the Pause … Read more
If the account you’re connecting to uses some weird fancy shell prompt, then there is a good chance that this is what makes tramp trip. Log in as root, then enter PS1=”> ” (that’s a normal, standard shell (ZSH, BASH, younameit) prompt, one that tramp will understand) then switch to the user account, and launch … Read more
Code wrapped in eval-after-load will be executed only once, so it is typically used to perform one-time setup such as setting default global values and behaviour. An example might be setting up a default keymap for a particular mode. In eval-after-load code, there’s no notion of the “current buffer”. Mode hooks execute once for every … Read more
(setq split-height-threshold nil) (setq split-width-threshold 0) GNU Emacs Lisp Reference Manual: Choosing Window Options