emacs - set custom.el file
authorPeng Li <seudut@gmail.com>
Wed, 22 Jun 2016 15:53:31 +0000 (23:53 +0800)
committerPeng Li <seudut@gmail.com>
Wed, 22 Jun 2016 15:53:31 +0000 (23:53 +0800)
emacs.d_2/config.org
emacs.d_2/init.el

index 9e987f8..b087ec4 100644 (file)
@@ -64,6 +64,15 @@ Disable scroll bar, tool-bar and menu-bar
 
 #+END_SRC
 
+set custom file 
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent 
+
+  (setq custom-file "~/.emacs.d/custom.el")
+  (load custom-file)
+
+#+END_SRC
+
 Switch the focus to help window when it appears
 
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
index 7eb439d..52cfca2 100644 (file)
@@ -6,22 +6,3 @@
 (package-initialize)
 
 (org-babel-load-file "~/.emacs.d/config.org")
-(custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(package-selected-packages
-   (quote
-    (counsel slime ido-exit-target undo-tree gnugo emms which-key ido-ubiquitous persp-projectile projectile company company-mode lispy worf use-package smex smartparens smart-comment org-bullets org multi-term magit linum-relative ido-vertical-mode flx-ido el-get color-theme-sanityinc-tomorrow color-theme color-identifiers-mode ace-window))))
-(custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(mode-line-buffer-id ((t (:foreground "black" :bold t))))
- '(org-block ((t (:background "#000000"))))
- '(org-block-background ((t (:background "#000000"))))
- '(org-block-begin-line ((t (:foreground "#008ED1" :background "#002E41"))))
- '(org-block-end-line ((t (:foreground "#008ED1" :background "#002E41"))))
- '(which-func ((t (:foreground "green")))))