Verified Commit f75b76be authored by peacerebel's avatar peacerebel
Browse files

Add auctex and function for moving lines

parent a3c6b8b3
......@@ -57,6 +57,23 @@
(dolist (pattern patterns)
(add-to-list 'auto-mode-alist (cons pattern mode))))
;; Move lines
(defun move-line-up ()
"Move current line up."
(transpose-lines 1)
(forward-line -2))
(defun move-line-down ()
"Move current line down."
(forward-line 1)
(transpose-lines 1)
(forward-line -1))
(global-set-key (kbd "M-<up>") 'move-line-up)
(global-set-key (kbd "M-<down>") 'move-line-down)
;; Move around open windows
(global-set-key (kbd "M-o") 'other-window)
......@@ -325,4 +342,18 @@ other, future frames."
(tide-hl-identifier-mode +1)
(company-mode +1)))
;; TeX
(use-package auctex
:defer t
:ensure t
(setq TeX-auto-save t
TeX-parse-self t
LaTeX-item-indent 0)
(setq-default TeX-master nil))
(use-package xkcd)
;;; config.el ends here
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment