From 2a15f9207a33a67cb78fa9b677d8d98f44d02dac Mon Sep 17 00:00:00 2001
From: Chizi123 <joelgrun@gmail.com>
Date: Thu, 22 Nov 2018 08:52:50 +0000
Subject: [PATCH] minor changes

---
 init.el |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/init.el b/init.el
index 0ee9edb..357d266 100644
--- a/init.el
+++ b/init.el
@@ -305,6 +305,15 @@
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))
 
+(use-package flycheck-clang-analyzer
+  :ensure t
+  :after flycheck
+  :config
+  (flycheck-clang-analyzer-setup)
+  (setq auto-package-update-delete-old-versions t)
+  (setq auto-package-update-hide-results t)
+  (auto-package-update-maybe))
+
 ;; nyan mode
 (use-package nyan-mode
   :if window-system
@@ -313,10 +322,22 @@
   (nyan-mode))
 
 ;; semantic refactor
-(use-package srefactor
+(use-package semantic
   :ensure t
   :config
-  (semantic-mode 1)
+  (semantic-mode 1))
+
+(use-package srefactor
+  :ensure t
+  :bind (("M-RET o" . 'srefactor-lisp-one-line)
+	 ("M-RET m" . 'srefactor-lisp-format-sexp)
+	 ("M-RET d" . 'srefactor-lisp-format-defun)
+	 ("M-RET b" . 'srefactor-lisp-format-buffer)
+	 :map c-mode-base-map
+	      ("M-RET" . 'srefactor-refactor-at-point)
+	      :map c++-mode-map
+	      ("M-RET" . 'srefactor-refactor-at-point))
+  :config
   (setq auto-package-update-delete-old-versions t)
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))
@@ -362,6 +383,7 @@
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))
 
+;; org
 (use-package org
   :ensure t
   :config
@@ -369,9 +391,12 @@
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))
 
+;; tex/AUCTex
 (use-package tex
   :ensure auctex
   :config
+  (setq TeX-auto-save t)
+  (setq TeX-parse-self t)
   (setq auto-package-update-delete-old-versions t)
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))

--
Gitblit v1.9.3