|
|
@ -62,32 +62,36 @@ |
|
|
|
'(font . "Source Code Pro-15")) |
|
|
|
;;+++++++ |
|
|
|
;;auctex: |
|
|
|
(is-installed 'auctex) |
|
|
|
(is-installed 'pdf-tools);; PDFtools |
|
|
|
(pdf-tools-install) |
|
|
|
(setenv "PATH" (concat "/Library/TeX/texbin:" |
|
|
|
(getenv "PATH"))) |
|
|
|
(add-to-list 'exec-path "/Library/TeX/texbin") |
|
|
|
(setq TeX-auto-save t) |
|
|
|
(setq TeX-save-query nil) |
|
|
|
(setq LaTeX-includegraphics-read-file 'LaTeX-includegraphics-read-file-relative) |
|
|
|
(setq TeX-parse-self t) |
|
|
|
(setq-default TeX-master nil) |
|
|
|
(add-hook 'LaTeX-mode-hook 'visual-line-mode) |
|
|
|
(add-hook 'LaTeX-mode-hook 'flyspell-mode) |
|
|
|
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) |
|
|
|
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) |
|
|
|
(setq reftex-plug-into-AUCTeX t) |
|
|
|
(setq TeX-view-program-selection '((output-pdf "PDF Tools")) |
|
|
|
TeX-source-correlate-start-server t) |
|
|
|
;; Update PDF buffers after successful LaTeX runs |
|
|
|
(add-hook 'TeX-after-compilation-finished-functions |
|
|
|
#'TeX-revert-document-buffer) |
|
|
|
(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) |
|
|
|
(add-hook 'pdf-view-mode-hook |
|
|
|
(lambda () (pdf-tools-enable-minor-modes))) |
|
|
|
(setq TeX-source-correlate-method 'synctex) |
|
|
|
;;--end---- |
|
|
|
;;++++++++ |
|
|
|
;; emacs startup config |
|
|
|
(setq inhibit-startup-message t) ;;inhibit startup |
|
|
|
(global-visual-line-mode t) |
|
|
|
(tool-bar-mode -1) |
|
|
|
(menu-bar-mode -1) |
|
|
|
(global-hl-line-mode +1) ;; highlith current line |
|
|
|
(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 |
|
|
|
(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 |
|
|
|
;;--------- |
|
|
|
;;.............. |
|
|
|
;;======== |
|
|
|
;;Flyspell |
|
|
|
(setq ispell-program-name "/usr/local/bin/aspell") |
|
|
|
;(setq ispell-aspell-data-dir "/usr/local/Cellar/ispell/3.4.04/lib/ispell/") |
|
|
|
;(setq ispell-aspell-dict-dir ispell-aspell-data-dir) |
|
|
|
(setq ispell-program-name "/usr/bin/aspell") |
|
|
|
(dolist (hook '(text-mode-hook)) |
|
|
|
(add-hook hook (lambda () (flyspell-mode 1)))) |
|
|
|
;; ========== |
|
|
@ -114,25 +118,25 @@ |
|
|
|
"Major mode for editing GitHub Flavored Markdown files" t) |
|
|
|
(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode)) |
|
|
|
;; ======== |
|
|
|
;; docker |
|
|
|
(is-installed 'docker-compose-mode) |
|
|
|
(require 'docker-compose-mode) |
|
|
|
;;======== |
|
|
|
;;Neotree |
|
|
|
(is-installed 'neotree) |
|
|
|
(require 'neotree) |
|
|
|
(global-set-key [f8] 'neotree-toggle) |
|
|
|
;;======= |
|
|
|
;; Python completion: |
|
|
|
(is-installed 'jedi) |
|
|
|
(is-installed 'pyvenv) |
|
|
|
;;(is-installed 'jedi:install-server) |
|
|
|
(add-hook 'python-mode-hook 'jedi:setup) |
|
|
|
(setq jedi:complete-on-dot t) ; optional |
|
|
|
(setq python-shell-interpreter "/usr/local/bin/python3") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;==================== |
|
|
|
;; emacs startup config |
|
|
|
(setq inhibit-startup-message nil) ;;inhibit startup |
|
|
|
(global-visual-line-mode t) |
|
|
|
(tool-bar-mode -1) |
|
|
|
(menu-bar-mode -1) |
|
|
|
(global-hl-line-mode +1) ;; highlith current line |
|
|
|
(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 |
|
|
|
(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 |
|
|
|
;;--------- |
|
|
|
(custom-set-variables |
|
|
|
;; custom-set-variables was added by Custom. |
|
|
|
;; If you edit it by hand, you could mess it up, so be careful. |
|
|
|