Browse Source

Update TODO, add whitespace indicator

Josh Bicking 7 năm trước cách đây
mục cha
commit
b45a49923a
2 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 5 3
      emacs.d/init.el
  2. 1 3
      emacs.d/packages/packages.el

+ 5 - 3
emacs.d/init.el

@@ -1,4 +1,5 @@
-;; TODO Move prettify lists into their own file.
+;; TODO Have special rules for windows like help and repl windows.
+;; Where they're positioned, whether or not they're focused, etc.
 
 ;;;; Startup
 
@@ -19,8 +20,7 @@
   (scroll-bar-mode -1))
 
 ;; Disable toolbar
-(when (display-graphic-p)
-  (tool-bar-mode -1))
+(tool-bar-mode -1)
 
 ;; smoother scrolling
 (setq scroll-margin 0
@@ -114,6 +114,8 @@
 ;; Buffer-based completion
 (global-set-key (kbd "C-SPC") 'dabbrev-completion)
 
+(setq-default show-trailing-whitespace t)
+(add-hook 'buffer-menu-mode-hook (lambda () (setq show-trailing-whitespace nil)))
 
 ;;;; System-specific configs
 

+ 1 - 3
emacs.d/packages/packages.el

@@ -40,9 +40,6 @@
 (use-package autorevert
   :diminish auto-revert-mode)
 
-(use-package bind-key
-  :ensure t)
-
 (use-package iedit
   :ensure t)
 
@@ -410,6 +407,7 @@
     (org-odt-export-to-odt)
     (shell-command (concat "libreoffice --headless --convert-to pdf \"" (file-name-sans-extension (buffer-name)) ".odt\"")))
   (setq org-html-table-default-attributes '(:border "2" :cellspacing "0" :cellpadding "6" :rules "all" :frame "border"))
+  (add-hook 'calendar-mode-hook (lambda () (setq show-trailing-whitespace nil)))
   )
 
 (use-package org-agenda