Skip to content

Instantly share code, notes, and snippets.

View guygurari's full-sized avatar

Guy Gur-Ari guygurari

  • Stealth Startup
  • Palo Alto, CA
View GitHub Profile
@guygurari
guygurari / helm-ads-extension.el
Created December 23, 2017 02:33
An Emacs Helm extension that retrieves citations from the ADS abstract service and inserts a \cite{...} command in the buffer.
;;
;; An Emacs Helm extension that retrieves citations from the ADS abstract service
;; and inserts a \cite{...} command in the buffer. The citation key is the bibcode
;; returned by ADS.
;;
;; To use, call (helm-ads)
;;
(require 'url)
(require 'json)
@guygurari
guygurari / latexpar.vim
Created July 25, 2012 22:31
Vim paragraph text-object for latex
"
" Defines a paragraph text-object that stops at \\begin / \\end , as well as at ordinary
" paragraph boundaries.
"
" Example: dap deletes the text paragraph and avoids any adjoining environments.
"
autocmd BufRead,BufNewFile *.tex vnoremap ip ?^\s*$\\|\\end<CR>jO/^\s*$\\|\\begin<CR>k$
autocmd BufRead,BufNewFile *.tex vmap ap ip
autocmd BufRead,BufNewFile *.tex omap ip :normal Vip<CR>
@guygurari
guygurari / CS04.vim
Created July 25, 2012 22:35
Vim color scheme based on the CS04 palette from Kuler
"
" Color scheme based on the pallette CS04 from Kuler:
" 1. #F6F792
" 2. #333745
" 3. #77C4D3
" 4. #DAEDE2
" 5. #EA2E49
" Extra colors:
" #131519 - darker 2
" #4F576B - lighter 2