From 276181c3a22f2d249425392d6cd55c64cedcb3c2 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Mon, 2 Oct 2017 18:18:20 +0800 Subject: [PATCH] Emacs - Add temp directory --- emacs.d/config.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emacs.d/config.org b/emacs.d/config.org index 0854ef8..6b3476e 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -32,6 +32,8 @@ Set system PATH and emacs exec path #+BEGIN_SRC emacs-lisp :tangle yes :results silent (defconst my-name "Peng Li") (defconst my-email "seudut@gmail.com") + (defconst MY-EMACS-DIR (concat (getenv "HOME") "/.emacs.d")) + (defconst MY-EMACS-TMP (concat MY-EMACS-DIR "/temp")) #+END_SRC ** General Setting @@ -2120,6 +2122,8 @@ here on Mac, just use "open" commands to pen =.pdf=, =.html= and image files (use-package company-statistics :ensure t + :init + (setq company-statistics-file (concat MY-EMACS-TMP "/company-statistics-cache.el")) :config (company-statistics-mode)) @@ -2498,6 +2502,9 @@ irony-company (require 'cc-mode) (require 'semantic) + (setq semanticdb-default-save-directory (concat MY-EMACS-TMP "/semantic/")) + (unless (file-exists-p semanticdb-default-save-directory) + (make-directory semanticdb-default-save-directory)) (global-semanticdb-minor-mode 1) (global-semantic-idle-scheduler-mode 1) -- 2.11.0