safe-load does not break emacs initialization, should a file be
unreadable while emacs boots up.
#+BEGIN_SRC emacs-lisp
-(defvar safe-load-error-list ""
- "*List of files that reported errors when loaded via safe-load")
-
-(defun safe-load (file &optional noerror nomessage nosuffix)
- "Load a file. If error on load, report back, wait for
- a key stroke then continue on"
- (interactive "f")
- (condition-case nil (load file noerror nomessage nosuffix)
- (error
- (progn
- (setq safe-load-error-list (concat safe-load-error-list " " file))
- (message "****** [Return to continue] Error loading %s" safe-load-error-list )
- (sleep-for 1)
- nil))))
-
-(defun safe-load-check ()
- "Check for any previous safe-load loading errors. (safe-load.el)"
- (interactive)
- (if (string-equal safe-load-error-list "") ()
- (message (concat "****** error loading: " safe-load-error-list))))
+ (defvar safe-load-error-list ""
+ "*List of files that reported errors when loaded via safe-load")
+
+ (defun safe-load (file &optional noerror nomessage nosuffix)
+ "Load a file. If error on load, report back, wait for
+ a key stroke then continue on"
+ (interactive "f")
+ (condition-case nil (load file noerror nomessage nosuffix)
+ (error
+ (progn
+ (setq safe-load-error-list (concat safe-load-error-list " " file))
+ (message "****** [Return to continue] Error loading %s" safe-load-error-list )
+ (sleep-for 1)
+ nil))))
+
+ (defun safe-load-check ()
+ "Check for any previous safe-load loading errors. (safe-load.el)"
+ (interactive)
+ (if (string-equal safe-load-error-list "") ()
+ (message (concat "****** error loading: " safe-load-error-list))))
#+END_SRC
match-paren will either jump to the "other" paren or simply insert %
:type 'float
:group 'ganneff-org-mode)
#+END_SRC
+
+* Customized variables
+:PROPERTIES:
+:ID: 0102208d-fdf6-4928-9e40-7e341bd3aa3a
+:END:
+Of course I want to be able to use the customize interface, and some
+things can only be set via it (or so they say). I usually prefer to put
+things I keep for a long while into statements somewhere else, not just
+custom-set here, but we need it anyways.
+
+#+BEGIN_SRC emacs-lisp
+(setq custom-file jj-custom-file)
+(safe-load custom-file)
+#+END_SRC
+
+The source of this is:
+#+INCLUDE: "~/.emacs.d/config/customized.el" src emacs-lisp
+
+
* Extra modes and their configuration
** mode alists
For some file endings we need to tell emacs what mode we want for them.
(icy-mode 1)
#+END_SRC
+And while I like icicles, I don't want it to interfere with my
+org-mode stuff.
+#+BEGIN_SRC emacs-lisp
+
+#+END_SRC
** uniquify
Always have unique buffernames. See [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Uniquify.html][Uniquify - GNU Emacs Manual]]
#+BEGIN_SRC emacs-lisp
(require 'flycheck)
(add-hook 'after-init-hook #'global-flycheck-mode))
#+END_SRC
-
-
-* Customized variables
-:PROPERTIES:
-:ID: 0102208d-fdf6-4928-9e40-7e341bd3aa3a
-:END:
-Of course I want to be able to use the customize interface, and some
-things can only be set via it (or so they say). I usually prefer to put
-things I keep for a long while into statements somewhere else, not just
-custom-set here, but we need it anyways.
-
-#+BEGIN_SRC emacs-lisp
-(setq custom-file jj-custom-file)
-(safe-load custom-file)
-#+END_SRC
-
-The source of this is:
-#+INCLUDE: "~/.emacs.d/config/customized.el" src emacs-lisp