emacs, zsh: Add go, add python2latex to emacs
This commit is contained in:
parent
68b132db6b
commit
74ddb685f1
@ -71,6 +71,8 @@
|
|||||||
(map! :desc "Format and save" :nvi "C-s" #'fd-format-and-save)
|
(map! :desc "Format and save" :nvi "C-s" #'fd-format-and-save)
|
||||||
(map! :leader "w 1" #'delete-other-windows)
|
(map! :leader "w 1" #'delete-other-windows)
|
||||||
|
|
||||||
|
(map! :leader "r" #'quickrun)
|
||||||
|
|
||||||
(setq-default evil-escape-key-sequence "kj")
|
(setq-default evil-escape-key-sequence "kj")
|
||||||
|
|
||||||
(defun fd-format-and-save()
|
(defun fd-format-and-save()
|
||||||
@ -114,7 +116,7 @@
|
|||||||
|
|
||||||
** TeX
|
** TeX
|
||||||
#+begin_src emacs-lisp :tangle yes
|
#+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 "<tab>" #'outline-cycle)
|
||||||
(map! :map TeX-mode-map :nvi "C-k" #'outline-backward-same-level)
|
(map! :map TeX-mode-map :nvi "C-k" #'outline-backward-same-level)
|
||||||
(map! :map TeX-mode-map :nvi "C-j" #'outline-forward-same-level)
|
(map! :map TeX-mode-map :nvi "C-j" #'outline-forward-same-level)
|
||||||
@ -132,11 +134,12 @@
|
|||||||
font-lock-constant-face
|
font-lock-constant-face
|
||||||
font-lock-function-name-face
|
font-lock-function-name-face
|
||||||
font-lock-variable-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
|
;; Fixes latexindent not finding perl libraries
|
||||||
(setenv "PERL5LIB" "/home/julian/perl5/lib/perl5")
|
(setenv "PERL5LIB" "/home/julian/perl5/lib/perl5")
|
||||||
|
;; (setenv "GOPATH" "/home/julian/go")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Spell Checking
|
** Spell Checking
|
||||||
@ -296,6 +299,11 @@ Return nil if on a link url, markup, html, or references."
|
|||||||
;; (when (flycheck-may-enable-checker 'lsp)
|
;; (when (flycheck-may-enable-checker 'lsp)
|
||||||
;; (flycheck-select-checker 'python-pylint))))
|
;; (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
|
#+end_src
|
||||||
** Haskell
|
** Haskell
|
||||||
#+begin_src emacs-lisp :tangle yes
|
#+begin_src emacs-lisp :tangle yes
|
||||||
|
@ -58,10 +58,10 @@
|
|||||||
fold ; (nigh) universal code folding
|
fold ; (nigh) universal code folding
|
||||||
format ;+onsave) ; automated prettiness
|
format ;+onsave) ; automated prettiness
|
||||||
;;god ; run Emacs commands without modifier keys
|
;;god ; run Emacs commands without modifier keys
|
||||||
;;lispy ; vim for lisp, for people who don't like vim
|
;; lispy ; vim for lisp, for people who don't like vim
|
||||||
;;multiple-cursors ; editing in many places at once
|
;;multiple-cursors ; editing in many places at once
|
||||||
;;objed ; text object editing for the innocent
|
;;objed ; text object editing for the innocent
|
||||||
;;parinfer ; turn lisp into python, sort of
|
parinfer ; turn lisp into python, sort of
|
||||||
;;rotate-text ; cycle region at point between text candidates
|
;;rotate-text ; cycle region at point between text candidates
|
||||||
snippets ; my elves. They type so I don't have to
|
snippets ; my elves. They type so I don't have to
|
||||||
;;word-wrap ; soft wrapping with language-aware indent
|
;;word-wrap ; soft wrapping with language-aware indent
|
||||||
@ -99,7 +99,7 @@
|
|||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs
|
make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
pdf ; pdf enhancements
|
;; pdf ; pdf enhancements
|
||||||
;;prodigy ; FIXME managing external services & code builders
|
;;prodigy ; FIXME managing external services & code builders
|
||||||
;;rgb ; creating color strings
|
;;rgb ; creating color strings
|
||||||
;;taskrunner ; taskrunner for all your projects
|
;;taskrunner ; taskrunner for all your projects
|
||||||
@ -135,7 +135,7 @@
|
|||||||
;;fsharp ; ML stands for Microsoft's Language
|
;;fsharp ; ML stands for Microsoft's Language
|
||||||
;;fstar ; (dependent) types and (monadic) effects and Z3
|
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||||
;;gdscript ; the language you waited for
|
;;gdscript ; the language you waited for
|
||||||
;;(go +lsp) ; the hipster dialect
|
(go +lsp) ; the hipster dialect
|
||||||
;;(graphql +lsp) ; Give queries a REST
|
;;(graphql +lsp) ; Give queries a REST
|
||||||
(haskell +lsp) ; a language that's lazier than I am
|
(haskell +lsp) ; a language that's lazier than I am
|
||||||
;;hy ; readability of scheme w/ speed of python
|
;;hy ; readability of scheme w/ speed of python
|
||||||
@ -145,7 +145,7 @@
|
|||||||
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
(julia +lsp +tree-sitter) ; a better, faster MATLAB
|
(julia +lsp +tree-sitter) ; a better, faster MATLAB
|
||||||
;;kotlin ; a better, slicker Java(Script)
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
(latex) ; writing papers in Emacs has never been so fun
|
(latex +lsp) ; writing papers in Emacs has never been so fun
|
||||||
;;lean ; for folks with too much to prove
|
;;lean ; for folks with too much to prove
|
||||||
;;ledger ; be audit you can be
|
;;ledger ; be audit you can be
|
||||||
;;lua ; one-based indices? one-based indices
|
;;lua ; one-based indices? one-based indices
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
export GOPATH="/home/julian/go";
|
||||||
|
|
||||||
|
export PATH=$GOPATH/bin:$PATH
|
||||||
export PATH=/home/julian/.emacs.d/bin:$PATH
|
export PATH=/home/julian/.emacs.d/bin:$PATH
|
||||||
export PATH=/home/julian/.cargo/bin:$PATH
|
export PATH=/home/julian/.cargo/bin:$PATH
|
||||||
export PATH=/home/julian/perl5/bin:$PATH
|
export PATH=/home/julian/perl5/bin:$PATH
|
||||||
@ -10,6 +13,7 @@ PERL_LOCAL_LIB_ROOT="/home/julian/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_
|
|||||||
PERL_MB_OPT="--install_base \"/home/julian/perl5\""; export PERL_MB_OPT;
|
PERL_MB_OPT="--install_base \"/home/julian/perl5\""; export PERL_MB_OPT;
|
||||||
PERL_MM_OPT="INSTALL_BASE=/home/julian/perl5"; export PERL_MM_OPT;
|
PERL_MM_OPT="INSTALL_BASE=/home/julian/perl5"; export PERL_MM_OPT;
|
||||||
|
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user