My Emacs configurations (. emacs and load-files.el)-001

Source: Internet
Author: User
GNU Emacs 23.1.1
Copyright (c) 2009 Free Software Foundation, Inc.
GNU Emacs comes with absolutely no warranty.
You may redistribute copies of Emacs
Under the terms of the GNU General Public License.
For more information about these matters, see the file named copying.

;;;
; -----------. Emacs -----------------------
;;;

; Auto load emacs file recursively

(Setq my-auto-lisp (list "~ /. My_emacs/lisp/common ""~ /. My_emacs/lisp/config "))
(Require 'Load-files)

; End of load my-auto-lisp files
;;;---------------------------------------------

The load-files.el loads the file or directory of the specified list
;;; **************************************** *************
;;
; Author: joans
; Date: 2011 Jul 22
; File: load-files.el
;;
;;; **************************************** **************

(Defun load-file-or-Dir (file-DIR)
"Load this file or files in the directory"
(If (file-exists-P file-DIR)
(If (file-directory-P file-DIR)
(Mapc 'Load-file-or-Dir
(Directory-files file-Dir t "^ [a-zA-z0-9]. *")
(Safe-Load file-DIR ))))

(Defun safe-load (file)
"Only load *. El file"
(If (and (file-regular-P file)
(File-readable-P file)
(Equal (file-name-extension file)
"El "))
(Load file )))

(Defun load-files (file-list)
"Load all files or directories of file-list"
(Mapc 'Load-file-or-Dir file-list ))

(Defcustom my-auto-lisp Nil
"Auto load lisp files or directories List ")

(Load-files my-auto-lisp)
(Provide 'Load-files)

; ------------ End of load-files.el --------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.