Always ensure to have a scratch buffer around.
#+BEGIN_SRC emacs-lisp tangle:yes
-(save-excursion
- (set-buffer (get-buffer-create "*scratch*"))
+(with-current-buffer (get-buffer-create "*scratch*")
(lisp-interaction-mode)
(make-local-variable 'kill-buffer-query-functions)
(add-hook 'kill-buffer-query-functions 'kill-scratch-buffer))
;; TODO: for some reason requiring this here breaks it, but
;; requiring it after an eshell session is started works fine.
;; (require 'eshell-vc)
- (setenv "PAGER" "cat")
+ (after 'eshell-mode
+ (setenv "PAGER" "cat")
+ (add-to-list 'eshell-visual-commands "ssh")
+ (add-to-list 'eshell-visual-commands "tail")
+ (add-to-list 'eshell-command-completions-alist
+ '("gunzip" "gz\\'"))
+ (add-to-list 'eshell-command-completions-alist
+ '("tar" "\\(\\.tar|\\.tgz\\|\\.tar\\.gz\\)\\'")))
+
; (set-face-attribute 'eshell-prompt nil :foreground "turquoise1")
(add-hook 'eshell-mode-hook ;; for some reason this needs to be a hook
'(lambda () (define-key eshell-mode-map "\C-a" 'eshell-bol)))
(add-hook 'eshell-preoutput-filter-functions
- 'ansi-color-filter-apply)
- (add-to-list 'eshell-visual-commands "ssh")
- (add-to-list 'eshell-visual-commands "tail")
- (add-to-list 'eshell-command-completions-alist
- '("gunzip" "gz\\'"))
- (add-to-list 'eshell-command-completions-alist
- '("tar" "\\(\\.tar|\\.tgz\\|\\.tar\\.gz\\)\\'"))))
-
+ 'ansi-color-filter-apply)))
#+END_SRC
*** Isearch related
,b. item two
#+BEGIN_SRC emacs-lisp tangle:yes tangle:yes
-(setq org-alphabetical-lists t)
+(if (> emacs-major-version 23)
+ (setq org-list-allow-alphabetical t)
+ (setq org-alphabetical-lists t))
#+END_SRC
#+BEGIN_SRC emacs-lisp tangle:yes :tangle yes