From e0386a726707e9b93fd285f3bb8a344436616648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 17 Dec 2020 00:15:03 +0100 Subject: [PATCH] Updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .emacs.d/init.el | 51 ++++++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c4fe566..3d74f12 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -12,12 +12,10 @@ ) ) (package-initialize) - -(setq package-check-signature nil) (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") ;; Remove welcome screen -(setq inhibit-startup-screen t) +;(setq inhibit-startup-screen t) ;; Disable menu (menu-bar-mode 0) @@ -26,16 +24,6 @@ (ido-mode 1) (global-set-key (kbd "C-x b") 'ido-switch-buffer) - -;; Enable Smex -(use-package smex - :ensure t - :init - (smex-initialize) - :bind - ("M-x" . smex) - ) - ;; Remove working cl (require 'cl-lib) (setq byte-compile-warnings '(cl-functions)) @@ -100,6 +88,15 @@ ;(require 'mozc) (setq default-input-method "japanese-mozc") +;; Enable Smex +(use-package smex + :ensure t + :init + (smex-initialize) + :bind + ("M-x" . smex) + ) + ;; reveal dependency (use-package htmlize :ensure t @@ -124,25 +121,27 @@ :ensure t ) (ac-config-default) -(global-auto-complete-mode t) +(global-auto-complete-mode 0) -;; Company & robe +;; Shell +(add-hook 'sh-mode-hook 'company-mode) + +;;robe (use-package robe :ensure t :config ) ;; Latex - ;(eval-after-load 'company ; '(push 'company-robe company-backends)) ;; Ruby -(eval-after-load 'auto-complete - '(add-to-list 'ac-modes 'inf-ruby-mode)) -(add-hook 'inf-ruby-mode-hook 'ac-inf-ruby-enable) -(eval-after-load 'inf-ruby ' - '(define-key inf-ruby-mode-map (kbd "TAB") 'auto-complete)) +;(eval-after-load 'auto-complete +; '(add-to-list 'ac-modes 'inf-ruby-mode)) +;(add-hook 'inf-ruby-mode-hook 'ac-inf-ruby-enable) +;(eval-after-load 'inf-ruby ' +; '(define-key inf-ruby-mode-map (kbd "TAB") 'auto-complete)) ;; Theme ;(use-package dracula-theme @@ -209,6 +208,7 @@ (yaml-mode-hook . flymake-yaml-load) ) ) + ;; Git (global-set-key (kbd "C-x g") 'magit-status) @@ -230,6 +230,15 @@ '(livedown-browser nil)) ; browser to use (global-set-key (kbd "C-M-m") 'livedown-preview) +;; Latexmk +(use-package auctex-latexmk + :ensure t + :config + ) + +(require 'auctex-latexmk) +(auctex-latexmk-setup) + ;;; --- Look & Feel --- ;; Zoom in/out.