Browse Source

use user-emacs-directory

pull/1/head
10sr 12 years ago
parent
commit
8ab2c21d47
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      emacs.el

+ 8
- 6
emacs.el View File

@@ -1,11 +1,13 @@
;; load another file
;; (load-file "~/filepath")

(unless (file-directory-p (expand-file-name "~/.emacs.d"))
(make-directory (expand-file-name "~/.emacs.d")))
(unless (file-directory-p (expand-file-name "~/.emacs.d/lisp"))
(make-directory (expand-file-name "~/.emacs.d/lisp")))
(add-to-list 'load-path "~/.emacs.d/lisp")
(unless (file-directory-p (expand-file-name user-emacs-directory))
(make-directory (expand-file-name user-emacs-directory)))
(let ((d (expand-file-name (concat user-emacs-directory
"lisp"))))
(unless (file-directory-p d)
(make-directory d))
(add-to-list 'load-path d))

(require 'cl nil t)

@@ -447,7 +449,7 @@ return nil if LIB unfound and downloading failed, otherwise the path of LIB."
(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)
(setq-default indent-line-function nil)
;(pc-selection-mode 1) ; this reverts back all keybind defined until this line
;(pc-selection-mode 1) ; this make some already defined keybind back to default
(delete-selection-mode 1)
(cua-mode 0)



Loading…
Cancel
Save