Jelajahi Sumber

Org mode src block settings

Simon Watson 2 tahun lalu
induk
melakukan
29db7cb0f7
1 mengubah file dengan 10 tambahan dan 3 penghapusan
  1. 10 3
      emacs/.emacs-all

+ 10 - 3
emacs/.emacs-all

@@ -107,7 +107,6 @@
 (straight-use-package
  '(symon :type git :host github
 	 :repo "zk-phi/symon"))
-(symon-mode 1)
 
 (straight-use-package
  '(telephone-line :type git :host github
@@ -122,6 +121,12 @@
 (setq highlight-indent-guides-method 'character)
 (add-hook 'prog-mode-hook 'highlight-indent-guides-mode)
 
+;; Org mode
+;; Get src block tabs to work how I expect
+(setq org-src-tab-acts-natively t)
+(setq org-src-preserve-indentation nil 
+      org-edit-src-content-indentation 0)
+
 (require 'yasnippet)
 
 ;; Configure focus
@@ -228,7 +233,8 @@
 (global-set-key (kbd "C-c d") 'slime-describe-symbol)
 (global-set-key (kbd "C-c M-r") 'slime-restart-inferior-lisp)
 (global-set-key (kbd "C-c D") 'dimmer-mode)
-(global-set-key (kbd "C-c s") 'sublimity-mode)
+(global-set-key (kbd "C-c S") 'sublimity-mode)
+(global-set-key (kbd "C-c s") 'flyspell-correct-word-before-point)
 (global-set-key (kbd "C-c F") 'focus-mode)
 (global-set-key (kbd "C-c r") 'reload-dot-emacs)
 (global-set-key (kbd "C-c l") 'display-line-numbers-mode)
@@ -319,7 +325,8 @@
       ;; Graphic Display
       (if (display-graphic-p)
 	  (progn
-	    (load-theme 'solarized-light t)))))
+	    (symon-mode 1)
+	    (load-theme 'solarized-dark t)))))
 
 ;; Load for GUI Linux
 (if (eq system-type 'gnu/linux)