Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

various'

  • Loading branch information...
commit 703852655b37ecbc6954d86e87c81f8b34c5a840 1 parent 1a6de06
@dlobraico authored
View
65 emacs.d/config/pygatea-auctex.el
@@ -37,8 +37,13 @@
(add-hook 'LaTeX-mode-hook (lambda ()
(define-key LaTeX-mode-map (kbd "<f6>") 'latex-word-count)
- (key-chord-define LaTeX-mode-map ",l" 'TeX-command-master)
- ))
+ (key-chord-define LaTeX-mode-map ",l" 'TeX-command-master)))
+
+(add-hook 'LaTeX-mode-hook (lambda ()
+ (push
+ '("Latexmk" "latexmk -xelatex %(mode) %s" TeX-run-TeX nil t
+ :help "Run Latexmk on file")
+ TeX-command-list)))
;; The below function expects something like the following to be
;; defined in the LaTeX document I am working within:
@@ -61,4 +66,60 @@
(add-hook 'LaTeX-mode-hook
(lambda () (define-key LaTeX-mode-map (kbd "C-c n") 'needs-revise)))
+
+(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
+(autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t)
+(autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil)
+(autoload 'reftex-citation "reftex-cite" "Make citation" nil)
+(autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t)
+(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
+(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
+
+;; Make RefTeX faster
+(setq reftex-enable-partial-scans t)
+(setq reftex-save-parse-info t)
+(setq reftex-use-multiple-selection-buffers t)
+(setq reftex-plug-into-AUCTeX t)
+
+;; Make RefTeX work with Org-Mode
+;; use 'C-c (' instead of 'C-c [' because the latter is already
+;; defined in orgmode to the add-to-agenda command.
+(defun org-mode-reftex-setup ()
+ (load-library "reftex")
+ (and (buffer-file-name)
+ (file-exists-p (buffer-file-name))
+ (reftex-parse-all))
+ (define-key org-mode-map (kbd "C-c (") 'reftex-citation))
+
+(add-hook 'org-mode-hook 'org-mode-reftex-setup)
+
+;; RefTeX formats for biblatex (not natbib)
+(setq reftex-cite-format
+ '(
+ (?\C-m . "\\cite[]{%l}")
+ (?t . "\\textcite{%l}")
+ (?a . "\\autocite[]{%l}")
+ (?p . "\\parencite{%l}")
+ (?f . "\\footcite[][]{%l}")
+ (?F . "\\fullcite[]{%l}")
+ (?x . "[]{%l}")
+ (?X . "{%l}")
+ ))
+
+(setq font-latex-match-reference-keywords
+ '(("cite" "[{")
+ ("cites" "[{}]")
+ ("footcite" "[{")
+ ("footcites" "[{")
+ ("parencite" "[{")
+ ("textcite" "[{")
+ ("fullcite" "[{")
+ ("citetitle" "[{")
+ ("citetitles" "[{")
+ ("headlessfullcite" "[{")))
+
+(setq reftex-cite-prompt-optional-args nil)
+(setq reftex-cite-cleanup-optional-args t)
+
(provide 'pygatea-auctex)
+
View
1  emacs.d/config/pygatea-packages.el
@@ -21,6 +21,7 @@
company
cperl-mode
css-mode
+ ebib
evil
evil-leader
evil-numbers
View
4 emacs.d/elisp/cs152-grading.el
@@ -2,9 +2,9 @@
(defvar grading-dir "/Users/dlobraico/Sandbox/2013-cs152-grading")
(defvar graded-work "/Users/dlobraico/Sandbox/2013-cs152-grading/000-graded-work")
-(defvar assignment "lab4")
+(defvar assignment "lab5")
(defvar assignment-files '("Makefile" "*.c"))
-(defvar graded-file "graded-lab4.c")
+(defvar graded-file (concat "graded-" assignment ".c"))
(defvar class-suffix "-cs152-win-13")
(defvar total-score-token "_total-score_")
View
1  emacs.d/init.el
@@ -34,6 +34,7 @@ ELPA (or MELPA).")
;;(load "/mnt/global/base/lib/elisp/jane-test/jane-common")
;;(setq Omake.create-dedicated-status-frame t)
+(load (concat pygatea-vendor-dir "js-elisp/elisp/jane/jane-common"))
(require 'pygatea-packages)
(require 'pygatea-ui)
View
6 gitconfig
@@ -28,17 +28,15 @@
gnc = goodness --cached
fa = fetch --all
pom = push origin master
-
+ pdiff = difftool -y -x patdiff
[format]
pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset
-
[merge]
tool = vimdiff
-
-
[core]
excludesfile = ~/.gitignore
[diff]
tool = vimdiff
+ #external = /Users/dlobraico/.userroot/bin/git-external_patdiff.sh
[push]
default = matching
View
38 muttrc
@@ -3,12 +3,12 @@ set sendmail = "~/.mutt/bin/sendmail -a d@lobraico.com"
set sendmail_wait = 0
unset record
-set spoolfile = "+unified-inbox"
+#set spoolfile = "+unified-inbox"
set realname = "D. LoBraico"
set folder = "$HOME/Mail"
-#set spoolfile = "+personal/INBOX"
+set spoolfile = "+personal/INBOX"
set mbox = "+personal/archive"
set postponed = "+personal/drafts"
alternates dj@lobraico.com
@@ -55,21 +55,20 @@ source $MAILCONF/mutt-colors-solarized/mutt-colors-solarized-dark-16.muttrc
# source $MAILCONF/mutt-colors-solarized/mutt-colors-solarized-light-16.muttrc
# Sidebar Patch
-#source $HOME/Mail/muttrc.mailboxes
-#set sidebar_delim = ' | '
-#set sidebar_visible = yes
-#set sidebar_width = 35
-#set sidebar_shortpath = yes
-#color sidebar_new brightred default
-
-#set sidebar_folderindent = "yes"
+source $HOME/Mail/mailboxes.muttrc
+set sidebar_delim = ' | '
+set sidebar_visible = yes
+set sidebar_width = 35
+set sidebar_folderindent = "yes"
+set sidebar_shortpath = yes
+color sidebar_new brightred default
# Sidebar navigation
-#bind index,pager \Cj sidebar-next
-#bind index,pager \Ck sidebar-prev
-#bind index,pager \Cl sidebar-open
-#macro index \Ch '<enter-command>toggle sidebar_visible<enter><refresh>'
-#macro pager \Ch '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
+bind index,pager \Cj sidebar-next
+bind index,pager \Ck sidebar-prev
+bind index,pager \Cl sidebar-open
+macro index \Ch '<enter-command>toggle sidebar_visible<enter><refresh>'
+macro pager \Ch '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
# Status Bar
set status_chars = " *%A"
@@ -137,8 +136,8 @@ macro pager s "<pipe-message>cat > ~/" "save message as"
# Compose view options
set envelope_from # which from?
set sig_dashes # dashes before sig
-# set edit_headers # show headers when composing
-unset edit_headers # DON'T show headers when composing
+set edit_headers # show headers when composing
+#unset edit_headers # DON'T show headers when composing
set fast_reply # skip to compose when replying
set askbcc # ask for BCC:
set askcc # ask for CC:
@@ -191,4 +190,9 @@ macro index gsa "<change-folder>+school/archive<enter>" "go to school/archive"
macro index gca "<change-folder>+csd/archive<enter>" "go to csd/archive"
macro index gda "<change-folder>+tds/archive<enter>" "go to tds/archive"
+macro index gps "<change-folder>+personal/sent<enter>" "go to personal/sent"
+macro index gss "<change-folder>+school/sent<enter>" "go to school/sent"
+macro index gcs "<change-folder>+csd/sent<enter>" "go to csd/sent"
+macro index gds "<change-folder>+tds/sent<enter>" "go to tds/sent"
+
bind index,pager gn next-unread-mailbox
View
2  vimrc
@@ -14,7 +14,7 @@ endif
" Always assume a 256 color terminal
set t_Co=256
let g:solarized_termcolors=256
-set background=light
+set background=dark
colorscheme solarized
" Basic environment
View
1  zshrc
@@ -102,7 +102,6 @@ if [[ $platform = 'darwin' ]]; then
alias sml='socat READLINE EXEC:/usr/local/smlnj-110.74/bin/sml'
eval "$(rbenv init -)"
- eval "$(hub alias -s)"
eval "$(opam config -env)"
alias ocaml="rlwrap ocaml"
Please sign in to comment.
Something went wrong with that request. Please try again.