When opening 2 files in emacs, how can I have them appear side-by-side?

Here’s a function that will change a pair of vertical windows to a pair of horizontal windows: (defun 2-windows-vertical-to-horizontal () (let ((buffers (mapcar ‘window-buffer (window-list)))) (when (= 2 (length buffers)) (delete-other-windows) (set-window-buffer (split-window-horizontally) (cadr buffers))))) To do this automatically on startup, add this function to emacs-startup-hook: (add-hook ’emacs-startup-hook ‘2-windows-vertical-to-horizontal)

Something wrong with Emacs shell

You can use AnsiTerm which does support colors or you can enable AnsiColor for the normal shell: (autoload ‘ansi-color-for-comint-mode-on “ansi-color” nil t) (add-hook ‘shell-mode-hook ‘ansi-color-for-comint-mode-on)

Highlight buffer modifications

As of Emacs 22.1 (at least), ‘save-buffers-kill-emacs (the default binding for C-x C-c) prompts you for each unsaved buffer that has a file. Type a d when prompted to save and see the diff. From the help documentation: Save some modified file-visiting buffers. Asks user about each one. You can answer `y’ to save, `n’ … Read more

wrong type argument: stringp, nil

You’ll need to provide more information to be sure. Try setting (setq debug-on-error t) which will give you a stack trace showing what function is complaining about the string being nil. My guess is that buffer-file-name is returning nil, and that’s where the problem lies (not all buffers have file names). Check out the debugging … Read more

tech