Kaynağa Gözat

Save cursor position, add diminish

Josh Bicking 8 yıl önce
ebeveyn
işleme
1af3fd63bc
1 değiştirilmiş dosya ile 31 ekleme ve 0 silme
  1. 31 0
      emacs

+ 31 - 0
emacs

@@ -124,6 +124,10 @@ scroll-conservatively 9999
 scroll-step 1)
 
 
+;; remember cursor position
+(toggle-save-place-globally)
+
+
 ;;;; Packages
 
 ;; Package installation
@@ -180,6 +184,7 @@ scroll-step 1)
 	flycheck
 	flycheck-pos-tip
 	evil-surround
+	diminish
 	))
 
 ;; List of optional packages
@@ -489,6 +494,32 @@ scroll-step 1)
 (require 'evil-surround)
 (global-evil-surround-mode 1)
 
+
+;; remove mode clutter from powerline
+
+;; "after" macro definition
+(if (fboundp 'with-eval-after-load)
+    (defmacro after (feature &rest body)
+      "After FEATURE is loaded, evaluate BODY."
+      (declare (indent defun))
+      `(with-eval-after-load ,feature ,@body))
+  (defmacro after (feature &rest body)
+    "After FEATURE is loaded, evaluate BODY."
+    (declare (indent defun))
+    `(eval-after-load ,feature
+       '(progn ,@body))))
+
+(require 'diminish)
+(diminish 'visual-line-mode)
+(after 'undo-tree (diminish 'undo-tree-mode))
+(after 'company (diminish 'company-mode))
+(after 'magit (diminish 'magit-auto-revert-mode))
+(diminish 'ivy-mode)
+(diminish 'editorconfig-mode)
+(diminish 'linum-relative-mode)
+(diminish 'auto-revert-mode)
+(diminish 'flycheck-mode)
+
 ;;;; System-specific configs
 
 (defun win-setup ()