| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -41,13 +41,22 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(delete-selection-mode +1) ;; deletes selected text and replace it | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(scroll-bar-mode -1) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(setq ns-right-alternate-modifier nil) ;; right option macos key enable | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(setq backup-directory-alis '(("." . "~/.saves"))) ;; a backup dir to store no saved files | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(setq backup-directory-alist '(("." . "~/.saves"))) ;; a backup dir to store no saved files | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(fset 'yes-or-no-p 'y-or-n-p) ;; Ask y/n instead of yes/no | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(show-paren-mode +1) ;; show matching parentheses | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; helm package: | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(use-package helm | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :ensure t | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :config (helm-mode t)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :demand t | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :bind (("M-x" . helm-M-x) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 ("C-c h x" . helm-register)    ; C-x r SPC and C-x r j | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 ("C-c h g" . helm-google-suggest) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 ("C-c h M-:" . helm-eval-expression-with-eldoc) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						 ("C-x C-f" . helm-find-files)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :config | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 (require 'helm-config) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  (helm-mode t)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; projectile: | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(use-package projectile | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :ensure t | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -103,8 +112,32 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(use-package magit | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :ensure t) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; latex | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(use-package tex | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :ensure auctex) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(use-package auctex | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :defer t | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :ensure t) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; pdlatex: | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(setq latex-run-command "pdflatex") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(setenv "PATH" (concat (getenv "PATH") ":/Library/TeX/texbin/")) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(setq exec-path (append exec-path '("/Library/TeX/texbin/"))) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; Use pdf-tools to open PDF files | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; (use-package pdf-tools | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;;   :ensure t | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;;   :pin melpa | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;;   :config | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;;   (custom-set-variables | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;;     '(pdf-tools-handle-upgrades nil)) ; Use brew upgrade pdf-tools instead. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;;   (setq pdf-info-epdfinfo-program "/usr/local/bin/epdfinfo")) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(use-package doc-view | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :defer t | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :custom | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  ;; Use MikTeX's utilities for PDF conversion and searching | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  (doc-view-pdf->png-converter-function 'doc-view-pdf->png-converter-ghostscript)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; (setq TeX-view-program-selection '((output-pdf "Preview.app"))) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; Update PDF buffers after successful LaTeX runs | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; (add-hook 'TeX-PDF-mode-hook 'pdf-view-mode) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; (add-hook 'TeX-after-compilation-finished-functions | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            ;; 'TeX-revert-document-buffer) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; flycheck | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(use-package flycheck | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :ensure t | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -127,11 +160,11 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :ensure t | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  :init | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  (add-hook 'after-init-hook 'global-company-mode)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; aspell | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; ispell | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(dolist (hook '(org-mode-hook latex-mode-hook tex-mode-hook git-commit-mode-hook)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						(add-hook hook (lambda () (flyspell-mode 1)))) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(setq ispell-dictionary "english") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(setq ispell-program-name "/usr/local/bin/aspell") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					;; Set default font: | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(add-to-list 'default-frame-alist | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
						     '(font . "Source Code Pro-18")) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -145,7 +178,12 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    ("2f1518e906a8b60fac943d02ad415f1d8b3933a5a7f75e307e6e9a26ef5bf570" "fe94e2e42ccaa9714dd0f83a5aa1efeef819e22c5774115a9984293af609fce7" default))) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 '(package-selected-packages | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					   (quote | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    (company org-bullets expand-region flycheck treemacs-projectile treemacs magit auctex dashboard helm-projectile helm doom-modeline doom-themes which-key use-package projectile)))) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    (company org-bullets expand-region flycheck treemacs-projectile treemacs magit auctex dashboard helm-projectile helm doom-modeline doom-themes which-key use-package projectile))) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 '(safe-local-variable-values | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					   (quote | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    ((pyvenv-workon . keesman_env) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     (org-edit-src-content . 0) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     (org-src-preserve-indentation . t))))) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					(custom-set-faces | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 ;; custom-set-faces was added by Custom. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 ;; If you edit it by hand, you could mess it up, so be careful. | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |