diff --git a/global.org b/global.org index 7045148..edcc37d 100644 --- a/global.org +++ b/global.org @@ -23,12 +23,30 @@ :source: [https://stackoverflow.com/a/18173666] - -* Move ~Customize~ to separate file +* Files and dirs + Move ~Customize~ to a separate file #+BEGIN_SRC emacs-lisp (setq custom-file "~/.emacs.d/custom.el") (load custom-file 'noerror) #+END_SRC + Add relevant dirs to load path [This is somewhat undesirable; I should + uniformize the path-loading business at some point ] + #+BEGIN_SRC emacs-lisp + (let ((default-directory "~/.emacs.d/")) + (normal-top-level-add-subdirs-to-load-path) + (normal-top-level-add-to-load-path '("fringe-helper.el" + "multiple-cursors.el" + "dash.el"))) + (add-to-list 'load-path "~/tmp") ;;what is this for? + (add-to-list 'load-path "~/kde-emacs") + (add-to-list 'load-path "~/tmp/expand-region.el") ;;cmon isn't this on melpa? + #+END_SRC + Put autosave files (ie #foo#) and backup files (ie foo~) in ~/.emacs.d/. + create the autosave dir if necessary, since emacs won't. + #+BEGIN_SRC emacs-lisp + (make-directory "~/.emacs.d/autosaves/" t) + (make-directory "~/.emacs.d/backup/" t) + #+END_SRC * Theming Use (my clone of) the solarized scheme @@ -142,12 +160,6 @@ scroll-conservatively 10000 scroll-preserve-screen-position 1) - ;; add .emacs.d and subdirs to load path - ;; (add-to-list 'load-path "~/.emacs.d") - (let ((default-directory "~/.emacs.d/")) - (normal-top-level-add-subdirs-to-load-path) - (normal-top-level-add-to-load-path '("fringe-helper.el" "multiple-cursors.el" "dash.el"))) - (require 'mic-paren) ; loading (paren-activate) ; activating @@ -161,7 +173,7 @@ (load "init-kde-integration.el") ;; KDE stuff - (add-to-list 'load-path "~/kde-emacs") + (load "qml-mode.el" nil t t) (add-to-list 'auto-mode-alist '("\\.qml\\'" . qml-mode)) #+END_SRC @@ -178,11 +190,6 @@ ;;(setq kde-full-name "Jacopo De Simoi") ;;(setq kde-email "wilderkde@gmail.com") -;; Put autosave files (ie #foo#) and backup files (ie foo~) in ~/.emacs.d/. -;; create the autosave dir if necessary, since emacs won't. -(make-directory "~/.emacs.d/autosaves/" t) -(make-directory "~/.emacs.d/backup/" t) - (add-hook 'text-mode-hook 'flyspell-mode) (require 'linum) @@ -200,8 +207,6 @@ (global-set-key (kbd "C-x k") 'kill-this-buffer) ;;why not? (setq default-fill-column 110) -(add-to-list 'load-path "~/tmp") - ;; (require 'pomodoro) @@ -286,7 +291,7 @@ the current position of point, then move it to the beginning of the line." (global-set-key (kbd "C-a") 'smart-line-beginning) ;; * load expand-region -(add-to-list 'load-path "~/tmp/expand-region.el") + (require 'expand-region) (global-set-key (kbd "C-=") 'er/expand-region)