emacs, zsh: Add go, add python2latex to emacs

This commit is contained in:
2023-01-23 19:50:37 +01:00
parent 68b132db6b
commit 74ddb685f1
3 changed files with 20 additions and 8 deletions

View File

@ -71,6 +71,8 @@
(map! :desc "Format and save" :nvi "C-s" #'fd-format-and-save)
(map! :leader "w 1" #'delete-other-windows)
(map! :leader "r" #'quickrun)
(setq-default evil-escape-key-sequence "kj")
(defun fd-format-and-save()
@ -114,7 +116,7 @@
** TeX
#+begin_src emacs-lisp :tangle yes
;; (map! :map TeX-mode-map :nvi "<backtab>" #'outline-cycle-buffer)
(map! :map TeX-mode-map :nvi "<backtab>" #'outline-cycle-buffer)
;; (map! :map TeX-mode-map :nvi "<tab>" #'outline-cycle)
(map! :map TeX-mode-map :nvi "C-k" #'outline-backward-same-level)
(map! :map TeX-mode-map :nvi "C-j" #'outline-forward-same-level)
@ -132,11 +134,12 @@
font-lock-constant-face
font-lock-function-name-face
font-lock-variable-name-face
font-lock-type-face ;; figure captions
)))
font-lock-type-face))) ;; figure captions
;; Fixes latexindent not finding perl libraries
(setenv "PERL5LIB" "/home/julian/perl5/lib/perl5")
;; (setenv "GOPATH" "/home/julian/go")
#+end_src
** Spell Checking
@ -296,6 +299,11 @@ Return nil if on a link url, markup, html, or references."
;; (when (flycheck-may-enable-checker 'lsp)
;; (flycheck-select-checker 'python-pylint))))
(defun fd-python-to-latex(regionBegin regionEnd)
(interactive (if (use-region-p)
(list (region-beginning) (region-end))
(list (point-min) (point-max))))
(shell-command-on-region regionBegin regionEnd "python2latex"))
#+end_src
** Haskell
#+begin_src emacs-lisp :tangle yes