What’s in your .emacs?
Use the ultimate dotfiles site. Add your ‘.emacs’ here. Read the ‘.emacs’ of others.
Use the ultimate dotfiles site. Add your ‘.emacs’ here. Read the ‘.emacs’ of others.
If you were doing it from a shell you’d do it like this: % gdb myprogram gdb> run params … < input.txt This seems to work within emacs too.
M-x find-name-dired: you will be prompted for a root directory and a filename pattern. Press t to “toggle mark” for all files found. Press Q for “Query-Replace in Files…”: you will be prompted for query/substitution regexps. Proceed as with query-replace-regexp: SPACE to replace and move to next match, n to skip a match, etc. Press … Read more
Global minor modes created with the define-globalized-minor-mode1 macro are a bit tricky. The reason your code doesn’t appear to do anything is that globalized modes utilise after-change-major-mode-hook to activate the buffer-local minor mode that they control; and that hook runs immediately after the major mode’s own hooks4. Individual modes may implement custom ways of specifying … Read more
C-x C-f ~/.emacs will take you to it. See the Emacs manual, nodes Init File and Find Init.
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
UPDATE: iswitchb-mode is obsolete in Emacs >= 24.4, replaced by ido. All of the features of iswitchdb are now provided by ido. Ross provided a link to the documentation in his answer. You can activate with the following in your .emacs (or use the customization interface as Ross suggests): (require ‘ido) (ido-mode ‘buffers) ;; only … Read more
Bind C-x C-b to ibuffer. This is a better buffer listing facility with many advanced features, and its default behaviour is to replace the current buffer with the buffer listing, and then bury the listing when you select a buffer (leaving you with the newly-selected buffer in place of the original one). You can simply … Read more
global-set-key expects an interactive command. (lambda () (interactive) (forward-line 5)) ought to work. By the way, C-h f commandp is a pretty good starting point for errors like that.
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