From 579def2a8889452497961079085304fd06640f41 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Wed, 22 Jun 2016 23:53:31 +0800 Subject: [PATCH] emacs - set custom.el file --- emacs.d_2/config.org | 9 +++++++++ emacs.d_2/init.el | 19 ------------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/emacs.d_2/config.org b/emacs.d_2/config.org index 9e987f8..b087ec4 100644 --- a/emacs.d_2/config.org +++ b/emacs.d_2/config.org @@ -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 diff --git a/emacs.d_2/init.el b/emacs.d_2/init.el index 7eb439d..52cfca2 100644 --- a/emacs.d_2/init.el +++ b/emacs.d_2/init.el @@ -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"))))) -- 2.11.0