init
This commit is contained in:
commit
a711247971
|
@ -0,0 +1,151 @@
|
|||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(package-selected-packages
|
||||
'(laas aas yasnippet evil editorconfig markdown-mode auctex rust-mode nasm-mode lua-mode ada-mode diff-hl magit corfu consult vertico)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
)
|
||||
|
||||
(unless (package-installed-p 'yasnippet)
|
||||
(package-install 'yasnippet))
|
||||
(add-to-list 'load-path
|
||||
"~/.config/emacs/yasnippet")
|
||||
(yas-global-mode 1)
|
||||
(setq yas-triggers-in-filed t)
|
||||
|
||||
(global-prettify-symbols-mode 1)
|
||||
(setq yas-triggers-in-field t)
|
||||
|
||||
; Global Autoactivating snippet engine
|
||||
(unless (package-installed-p 'aas)
|
||||
(package-install 'aas))
|
||||
|
||||
(use-package aas
|
||||
:hook (LaTeX-mode . aas-activate-for-major-mode)
|
||||
:hook (org-mode . aas-activate-for-major-mode)
|
||||
:config
|
||||
(aas-set-snippets 'text-mode
|
||||
;; expand unconditionally
|
||||
";o-" "ō"
|
||||
";i-" "ī"
|
||||
";a-" "ā"
|
||||
";u-" "ū"
|
||||
";e-" "ē"
|
||||
";a:" "ä"
|
||||
";o:" "ö"
|
||||
";u:" "ü"
|
||||
)
|
||||
(aas-set-snippets 'global
|
||||
"credpriv" "Yannick Reiß <yannick.reiss@protonmail.ch>"
|
||||
"creduni" "Yannick Reiß <yannick.reiss@student.hs-rm.de>"
|
||||
)
|
||||
(aas-set-snippets 'c-mode
|
||||
"/*" (lambda () (interactive)
|
||||
(yas-expand-snippet "/* $1 */$0"))
|
||||
)
|
||||
(aas-set-snippets 'tex-mode
|
||||
;; set condition!
|
||||
:cond #'texmathp ; expand only while in math
|
||||
"supp" "\\supp"
|
||||
"On" "O(n)"
|
||||
"O1" "O(1)"
|
||||
"Olog" "O(\\log n)"
|
||||
"Olon" "O(n \\log n)"
|
||||
;; Use YAS/Tempel snippets with ease!
|
||||
"amin" '(yas "\\argmin_{$1}") ; YASnippet snippet shorthand form
|
||||
"amax" '(tempel "\\argmax_{" p "}") ; Tempel snippet shorthand form
|
||||
;; bind to functions!
|
||||
";ig" #'insert-register
|
||||
";call-sin"
|
||||
(lambda (angle) ; Get as fancy as you like
|
||||
(interactive "sAngle: ")
|
||||
(insert (format "%s" (sin (string-to-number angle))))))
|
||||
;; disable snippets by redefining them with a nil expansion
|
||||
(aas-set-snippets 'latex-mode
|
||||
"supp" nil)
|
||||
(aas-set-snippets 'global
|
||||
";--" "—"
|
||||
";->" "→")
|
||||
(aas-global-mode))
|
||||
|
||||
;; LaTeX Autoactivating snippet engine
|
||||
(unless (package-installed-p 'laas)
|
||||
(package-install 'laas))
|
||||
|
||||
(use-package laas
|
||||
:hook (LaTeX-mode . laas-mode)
|
||||
:config ; do whatever here
|
||||
(aas-set-snippets 'laas-mode
|
||||
;; Custom LaTeX Shortcuts
|
||||
"ß" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\\\$0"))
|
||||
"sss" (lambda () (interactive)
|
||||
(yas-expand-snippet "ß$0"))
|
||||
"%%" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\%$0"))
|
||||
",#" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\textbf{$1}$0"))
|
||||
",m" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\\\( $1 \\\\) $0"))
|
||||
";M" (lambda () (interactive)
|
||||
(yas-expand-snippet " \\\\[ $1 \\\\] $0"))
|
||||
";L" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\begin{align} $1 \\end{align}$0"))
|
||||
"-->" "$\\rightarrow$"
|
||||
"texmeta" (lambda () (interactive)
|
||||
(yas-expand-snippet "% TODO: ${1:Do what?} `(current-time-string)`"))
|
||||
"tgreen" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\textcolor{green}{$1}$0"))
|
||||
"tblue" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\textcolor{blue}{$1}$0"))
|
||||
|
||||
;; set condition!
|
||||
:cond #'texmathp ; expand only while in math
|
||||
"supp" "\\supp"
|
||||
"On" "O(n)"
|
||||
"O1" "O(1)"
|
||||
"Olog" "O(\\log n)"
|
||||
"Olon" "O(n \\log n)"
|
||||
"menge" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\mathbb{$1}$0"))
|
||||
|
||||
;; Greek Letters (Shortcuts)
|
||||
"@a" "\\alpha"
|
||||
"@A" "\\Alpha"
|
||||
"@b" "\\beta"
|
||||
"@B" "\\Beta"
|
||||
"@p" "\\phi"
|
||||
"@P" "\\Phi"
|
||||
"@s" "\\sigma"
|
||||
"@S" "\\Sigma"
|
||||
"@m" "\\mu"
|
||||
"@M" "\\Mu"
|
||||
|
||||
;; custom math shortcuts
|
||||
"%%" "\\%"
|
||||
"++" (lambda () (interactive)
|
||||
(yas-expand-snippet "^{$1}$0"))
|
||||
"mod" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\text{ mod }"))
|
||||
"root" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\sqrt[$1]{$2}$0"))
|
||||
"__" (lambda () (interactive)
|
||||
(yas-expand-snippet "_{$1}$0"))
|
||||
"circ" "\\circ"
|
||||
"in" "\\in"
|
||||
|
||||
;; bind to functions!
|
||||
"Sum" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\sum_{$1}^{$2} $0"))
|
||||
"Span" (lambda () (interactive)
|
||||
(yas-expand-snippet "\\Span($1)$0"))
|
||||
;; add accent snippets
|
||||
:cond #'laas-object-on-left-condition
|
||||
"qq" (lambda () (interactive) (laas-wrap-previous-object "sqrt"))))
|
||||
|
|
@ -0,0 +1,150 @@
|
|||
;;; Personal configuration -*- lexical-binding: t -*-
|
||||
|
||||
;; Save the contents of this file under ~/.emacs.d/init.el
|
||||
;; Do not forget to use Emacs' built-in help system:
|
||||
;; Use C-h C-h to get an overview of all help commands. All you
|
||||
;; need to know about Emacs (what commands exist, what functions do,
|
||||
;; what variables specify), the help system can provide.
|
||||
(unless (package-installed-p 'use-package)
|
||||
(require 'package)
|
||||
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
|
||||
("melpa" . "https://melpa.org/packages/")))
|
||||
(package-refresh-contents)
|
||||
(package-install 'use-package))
|
||||
|
||||
;; Ensure package archive melpa is available
|
||||
(require 'package)
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
||||
(package-initialize)
|
||||
(package-refresh-contents)
|
||||
|
||||
;; Load a custom theme
|
||||
(load-theme 'whiteboard t)
|
||||
|
||||
;; Disable the tool bar
|
||||
(tool-bar-mode -1)
|
||||
|
||||
;; Disable splash screen
|
||||
(setq inhibit-startup-screen t)
|
||||
|
||||
;;; Completion framework
|
||||
(unless (package-installed-p 'vertico)
|
||||
(package-install 'vertico))
|
||||
|
||||
;; Enable completion by narrowing
|
||||
(vertico-mode t)
|
||||
|
||||
;;; Extended completion utilities
|
||||
(unless (package-installed-p 'consult)
|
||||
(package-install 'consult))
|
||||
(global-set-key [rebind switch-to-buffer] #'consult-buffer)
|
||||
|
||||
;; Enable line numbering in `prog-mode'
|
||||
(add-hook 'prog-mode-hook #'display-line-numbers-mode)
|
||||
|
||||
;; Automatically pair parentheses
|
||||
(electric-pair-mode t)
|
||||
|
||||
;;; LSP Support
|
||||
(unless (package-installed-p 'eglot)
|
||||
(package-install 'eglot))
|
||||
|
||||
;; Enable LSP support by default in programming buffers
|
||||
(add-hook 'prog-mode-hook #'eglot-ensure)
|
||||
|
||||
;;; Inline static analysis
|
||||
|
||||
;; Enabled inline static analysis
|
||||
(add-hook 'prog-mode-hook #'flymake-mode)
|
||||
|
||||
;;; Pop-up completion
|
||||
(unless (package-installed-p 'corfu)
|
||||
(package-install 'corfu))
|
||||
|
||||
;; Enable autocompletion by default in programming buffers
|
||||
(add-hook 'prog-mode-hook #'corfu-mode)
|
||||
|
||||
;;; Git client
|
||||
(unless (package-installed-p 'magit)
|
||||
(package-install 'magit))
|
||||
|
||||
;; Bind the `magit-status' command to a convenient key.
|
||||
(global-set-key (kbd "C-c g") #'magit-status)
|
||||
|
||||
;;; Indication of local VCS changes
|
||||
(unless (package-installed-p 'diff-hl)
|
||||
(package-install 'diff-hl))
|
||||
|
||||
;; Enable `diff-hl' support by default in programming buffers
|
||||
(add-hook 'prog-mode-hook #'diff-hl-mode)
|
||||
|
||||
;;; Ada Support
|
||||
(unless (package-installed-p 'ada-mode)
|
||||
(package-install 'ada-mode))
|
||||
|
||||
;;; Lua Support
|
||||
(unless (package-installed-p 'lua-mode)
|
||||
(package-install 'lua-mode))
|
||||
|
||||
;;; NASM Support
|
||||
(unless (package-installed-p 'nasm-mode)
|
||||
(package-install 'nasm-mode))
|
||||
|
||||
;;; Rust Support
|
||||
(unless (package-installed-p 'rust-mode)
|
||||
(package-install 'rust-mode))
|
||||
|
||||
;;; LaTeX support
|
||||
(unless (package-installed-p 'auctex)
|
||||
(package-install 'auctex))
|
||||
(setq TeX-auto-save t)
|
||||
(setq TeX-parse-self t)
|
||||
(setq-default TeX-master nil)
|
||||
|
||||
;; Enable LaTeX math support
|
||||
(add-hook 'LaTeX-mode-hook #'LaTeX-math-mode)
|
||||
|
||||
;; Enable reference mangment
|
||||
(add-hook 'LaTeX-mode-hook #'reftex-mode)
|
||||
|
||||
;;; Markdown support
|
||||
(unless (package-installed-p 'markdown-mode)
|
||||
(package-install 'markdown-mode))
|
||||
|
||||
;;; Outline-based notes management and organizer
|
||||
|
||||
;;; EditorConfig support
|
||||
(unless (package-installed-p 'editorconfig)
|
||||
(package-install 'editorconfig))
|
||||
|
||||
;; Enable EditorConfig
|
||||
(editorconfig-mode t)
|
||||
|
||||
;;; Vim Emulation
|
||||
(unless (package-installed-p 'evil)
|
||||
(package-install 'evil))
|
||||
|
||||
;; Enable Vim emulation
|
||||
(evil-mode t)
|
||||
|
||||
;; Enable Vim emulation in programming buffers
|
||||
(add-hook 'prog-mode-hook #'evil-local-mode)
|
||||
|
||||
;; Miscellaneous options
|
||||
(setq-default major-mode
|
||||
(lambda () ; guess major mode from file name
|
||||
(unless buffer-file-name
|
||||
(let ((buffer-file-name (buffer-name)))
|
||||
(set-auto-mode)))))
|
||||
(setq confirm-kill-emacs #'yes-or-no-p)
|
||||
(setq window-resize-pixelwise t)
|
||||
(setq frame-resize-pixelwise t)
|
||||
(save-place-mode t)
|
||||
(savehist-mode t)
|
||||
(recentf-mode t)
|
||||
(defalias 'yes-or-no #'y-or-n-p)
|
||||
|
||||
;; Store automatic customisation options elsewhere
|
||||
(setq custom-file (locate-user-emacs-file "custom.el"))
|
||||
(when (file-exists-p custom-file)
|
||||
(load custom-file))
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: case statement
|
||||
# key: case
|
||||
# --
|
||||
case $1 is
|
||||
when $3 => $4
|
||||
when others => $2;
|
||||
end case;$0
|
|
@ -0,0 +1,14 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: function declaration
|
||||
# key: function
|
||||
# --
|
||||
-- @name $1
|
||||
-- @return $3
|
||||
-- @param $2
|
||||
-- @description $5
|
||||
function ${1:Name}($2) return ${3:Integer} is
|
||||
$4
|
||||
begin
|
||||
$7
|
||||
return ${6:$3};
|
||||
end $1;$0
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: ada -*-
|
||||
# name: procedure
|
||||
# key: proc
|
||||
# --
|
||||
procedure $1 is
|
||||
$2
|
||||
begin
|
||||
$3
|
||||
end $1;
|
||||
$0
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: with
|
||||
# key: with
|
||||
# --
|
||||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: project
|
||||
# key: proj
|
||||
# --
|
||||
<project name="${1:test}" default="${2:compile}" basedir="${3:.}">
|
||||
|
||||
$0
|
||||
</project>
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: property
|
||||
# key: prop
|
||||
# --
|
||||
<property name="${1:name}" value="${2:value}" />
|
||||
$0
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: target
|
||||
# key: target
|
||||
# --
|
||||
<target name="${1:compile}" ${2:other}>
|
||||
$0
|
||||
</target>
|
|
@ -0,0 +1 @@
|
|||
prog-mode
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: comment
|
||||
# --
|
||||
(*
|
||||
$0
|
||||
*)
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: considering
|
||||
# --
|
||||
considering $1
|
||||
$0
|
||||
end considering
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: considering-application-responses
|
||||
# --
|
||||
considering application responses
|
||||
$0
|
||||
end considering
|
|
@ -0,0 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: display-dialog
|
||||
# --
|
||||
display dialog "$0"
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: if
|
||||
# --
|
||||
if $1 then
|
||||
$2
|
||||
else
|
||||
$0
|
||||
end if
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: ignoring
|
||||
# --
|
||||
ignoring $1
|
||||
$0
|
||||
end ignoring
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: ignoring-application-responses
|
||||
# --
|
||||
ignoring application responses
|
||||
$0
|
||||
end ignoring
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: on
|
||||
# --
|
||||
on $1
|
||||
$0
|
||||
end $1
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: repeat
|
||||
# --
|
||||
repeat $1
|
||||
$0
|
||||
end repeat
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: repeat-until
|
||||
# --
|
||||
repeat until $1
|
||||
$0
|
||||
end repeat
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: repeat-while
|
||||
# --
|
||||
repeat while $1
|
||||
$0
|
||||
end repeat
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: repeat-with
|
||||
# --
|
||||
repeat with $1
|
||||
$0
|
||||
end repeat
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: tell-application
|
||||
# --
|
||||
tell application "$1"
|
||||
$0
|
||||
end tell
|
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: tell-application-to-activate
|
||||
# --
|
||||
tell application "$1" to activate
|
||||
$0
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: try
|
||||
# --
|
||||
try
|
||||
$1
|
||||
on error $2
|
||||
$0
|
||||
end try
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: using-terms-from-application
|
||||
# --
|
||||
using terms from application "$1"
|
||||
$0
|
||||
end using terms from
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: with-timeout-of-seconds
|
||||
# --
|
||||
with timeout of $1 seconds
|
||||
$0
|
||||
end timeout
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: with-transaction
|
||||
# --
|
||||
with transaction
|
||||
$0
|
||||
end transaction
|
|
@ -0,0 +1 @@
|
|||
prog-mode
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: comment
|
||||
# --
|
||||
(*
|
||||
$0
|
||||
*)
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: considering
|
||||
# --
|
||||
considering $1
|
||||
$0
|
||||
end considering
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: considering-application-responses
|
||||
# --
|
||||
considering application responses
|
||||
$0
|
||||
end considering
|
|
@ -0,0 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: display-dialog
|
||||
# --
|
||||
display dialog "$0"
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: if
|
||||
# --
|
||||
if $1 then
|
||||
$2
|
||||
else
|
||||
$0
|
||||
end if
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: ignoring
|
||||
# --
|
||||
ignoring $1
|
||||
$0
|
||||
end ignoring
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: ignoring-application-responses
|
||||
# --
|
||||
ignoring application responses
|
||||
$0
|
||||
end ignoring
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: on
|
||||
# --
|
||||
on $1
|
||||
$0
|
||||
end $1
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: repeat
|
||||
# --
|
||||
repeat $1
|
||||
$0
|
||||
end repeat
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: repeat-until
|
||||
# --
|
||||
repeat until $1
|
||||
$0
|
||||
end repeat
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: repeat-while
|
||||
# --
|
||||
repeat while $1
|
||||
$0
|
||||
end repeat
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: repeat-with
|
||||
# --
|
||||
repeat with $1
|
||||
$0
|
||||
end repeat
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: tell-application
|
||||
# --
|
||||
tell application "$1"
|
||||
$0
|
||||
end tell
|
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: tell-application-to-activate
|
||||
# --
|
||||
tell application "$1" to activate
|
||||
$0
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: try
|
||||
# --
|
||||
try
|
||||
$1
|
||||
on error $2
|
||||
$0
|
||||
end try
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: using-terms-from-application
|
||||
# --
|
||||
using terms from application "$1"
|
||||
$0
|
||||
end using terms from
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: with-timeout-of-seconds
|
||||
# --
|
||||
with timeout of $1 seconds
|
||||
$0
|
||||
end timeout
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: with-transaction
|
||||
# --
|
||||
with transaction
|
||||
$0
|
||||
end transaction
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: alias
|
||||
# key: alias
|
||||
# --
|
||||
alias(
|
||||
name = "$0",
|
||||
actual = "$1"
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: cc_binary
|
||||
# key: ccb
|
||||
# --
|
||||
cc_binary(
|
||||
name = "$0",
|
||||
srcs = ["$1"],
|
||||
deps = ["$2"]
|
||||
)
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: cc_import
|
||||
# key: cci
|
||||
# --
|
||||
cc_import(
|
||||
name = "$0",
|
||||
hdrs = ["$1"]
|
||||
)
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: cc_inc_library
|
||||
# key: ccinc
|
||||
# --
|
||||
cc_inc_library(
|
||||
name = "$0",
|
||||
hdrs = ["$1"],
|
||||
prefix = "$2",
|
||||
deps = ["$3"]
|
||||
)
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: cc_library
|
||||
# key: ccl
|
||||
# --
|
||||
cc_library(
|
||||
name = "$0",
|
||||
srcs = ["$1"],
|
||||
hdrs = ["$2"],
|
||||
deps = ["$3"]
|
||||
)
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: cc_proto_library
|
||||
# key: ccp
|
||||
# --
|
||||
cc_proto_library(
|
||||
name = "$0",
|
||||
deps = ["$1"]
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: cc_test
|
||||
# key: cct
|
||||
# --
|
||||
cc_test(
|
||||
name = "$0"
|
||||
srcs = ["$1"],
|
||||
deps = ["$2"]
|
||||
)
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: filegroup
|
||||
# key: fg
|
||||
# --
|
||||
filegroup(
|
||||
name = "$0",
|
||||
srcs = "$1"
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: genquery
|
||||
# key: genq
|
||||
# --
|
||||
genquery(
|
||||
name = "$0",
|
||||
expression = "$1",
|
||||
scope = "$2"
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: java_binary
|
||||
# key: jbin
|
||||
# --
|
||||
java_binary(
|
||||
name = "$0",
|
||||
srcs = "$1",
|
||||
deps = "$2"
|
||||
)
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: java_import
|
||||
# key: jimp
|
||||
# --
|
||||
java_import(
|
||||
name = "$0",
|
||||
jars = [
|
||||
"$1"
|
||||
]
|
||||
)
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: java_library
|
||||
# key: jlib
|
||||
# --
|
||||
java_library(
|
||||
name = "$0",
|
||||
deps = "$1"
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: java_runtime
|
||||
# key: jrun
|
||||
# --
|
||||
java_runtime(
|
||||
name = "$0",
|
||||
srcs = "$1",
|
||||
java_home = "$2"
|
||||
)
|
|
@ -0,0 +1,11 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: java_test
|
||||
# key: jtest
|
||||
# --
|
||||
java_test(
|
||||
name = "$0",
|
||||
size = "$1",
|
||||
runtime_deps = [
|
||||
"$2"
|
||||
]
|
||||
)
|
|
@ -0,0 +1,12 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: py_binary
|
||||
# key: pybin
|
||||
# --
|
||||
py_binary(
|
||||
name = "$0",
|
||||
srcs = "$1",
|
||||
data = "$2"
|
||||
deps = [
|
||||
"$3"
|
||||
]
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: py_library
|
||||
# key: pylib
|
||||
# --
|
||||
py_library(
|
||||
name = "$0",
|
||||
deps = "$1",
|
||||
srcs = "$2"
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: py_runtime
|
||||
# key: pyrun
|
||||
# --
|
||||
py_runtime(
|
||||
name = "$0",
|
||||
files = "$1",
|
||||
interpreter = "$2"
|
||||
)
|
|
@ -0,0 +1,11 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: py_test
|
||||
# key: pytest
|
||||
# --
|
||||
py_test(
|
||||
name = "$0",
|
||||
srcs = [
|
||||
"$1"
|
||||
],
|
||||
main = "$2",
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: sh_binary
|
||||
# key: shbin
|
||||
# --
|
||||
sh_binary(
|
||||
name = "$0",
|
||||
srcs = "$1",
|
||||
data = "$2"
|
||||
)
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: sh_library
|
||||
# key: shlib
|
||||
# --
|
||||
sh_library(
|
||||
name = "$0",
|
||||
data = [
|
||||
"$1"
|
||||
]
|
||||
)
|
|
@ -0,0 +1,11 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: sh_test
|
||||
# key: shtest
|
||||
# --
|
||||
sh_test(
|
||||
name = "$0",
|
||||
size = "$1",
|
||||
srcs = "$2",
|
||||
deps = "$3",
|
||||
data = "$4"
|
||||
)
|
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: workspace
|
||||
# key: ws
|
||||
# --
|
||||
workspace(name = "$0")
|
|
@ -0,0 +1,4 @@
|
|||
(require 'yasnippet)
|
||||
(require 'yasnippet-snippets)
|
||||
|
||||
(add-hook 'bibtex-mode-hook #'yasnippet-snippets--no-indent)
|
|
@ -0,0 +1,17 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: article
|
||||
# key: article
|
||||
# --
|
||||
@article{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
journal = {${journal}},
|
||||
year = {${year}}${,
|
||||
volume = {${volume}}}${,
|
||||
number = {${number}}}${,
|
||||
pages = {${pages}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: book
|
||||
# key: book
|
||||
# --
|
||||
@book{ ${title},
|
||||
author = {${author}},
|
||||
editor = {${editor}}
|
||||
title = {${title}},
|
||||
publisher = {${publisher}},
|
||||
year = {${year}}${,
|
||||
volume = {${volume}}}${,
|
||||
number = {${number}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
isbn = {${isbn}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: bookinbook
|
||||
# key: bookinbook
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@bookinbook{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
chapter = {${chapter}}${,
|
||||
pages = {${pages}}},
|
||||
publisher = {${publisher}},
|
||||
year = {${year}},
|
||||
volume = {${volume}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,15 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: booklet
|
||||
# key: booklet
|
||||
# --
|
||||
@booklet{ ${title},
|
||||
author = {${author}}${,
|
||||
howpublished = {${howpublished}}}${,
|
||||
address = {${address}}}${,
|
||||
year = {${year}}}${,
|
||||
month = {${month}}}${,
|
||||
volume = {${volume}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: collection
|
||||
# key: collection
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@collection{ ${title},
|
||||
editor = {${editor}},
|
||||
title = {${title}},
|
||||
year = {${year}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
volume = {${volume}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
chapter = {${chapter}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,21 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: conference
|
||||
# key: conference
|
||||
# --
|
||||
@conference{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
booktitle = {${booktitle}},
|
||||
year = {${year}},
|
||||
editor = {${editor}}${,
|
||||
volume = {${volume}}}${,
|
||||
series = {${series}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
month = {${month}}}${,
|
||||
organization = {${organization}}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,17 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: dataset
|
||||
# key: dataset
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@dataset{ ${title}
|
||||
title = {${title}},
|
||||
editor = {${editor}},
|
||||
year = {${year}}${,
|
||||
author = {${author}}}${,
|
||||
volume = {${volume}}}${,
|
||||
version = {${version}}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
organization = {${organization}}}${,
|
||||
note = {${note}}}
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: electronic
|
||||
# key: electronic
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@electronic{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
year = {${year}},
|
||||
url = {${url}}${,
|
||||
editor = {${editor}}}${,
|
||||
urldate = {${urldate}}}${,
|
||||
note = {${note}}}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: inbook
|
||||
# key: inbook
|
||||
# --
|
||||
@inbook{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
chapter = {${chapter}}${,
|
||||
pages = {${pages}}},
|
||||
publisher = {${publisher}},
|
||||
year = {${year}},
|
||||
volume = {${volume}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,23 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: incollection
|
||||
# key: incollection
|
||||
# --
|
||||
@incollection{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
booktitle = {${booktitle}},
|
||||
publisher = {${publisher}},
|
||||
year = {${year}}${,
|
||||
editor = {${editor}}}${,
|
||||
volume = {${volume}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
chapter = {${chapter}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,21 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: inproceedings
|
||||
# key: inproceedings
|
||||
# --
|
||||
@inproceedings{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
booktitle = {${booktitle}},
|
||||
year = {${year}},
|
||||
editor = {${editor}}${,
|
||||
volume = {${volume}}}${,
|
||||
series = {${series}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
month = {${month}}}${,
|
||||
organization = {${organization}}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,24 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: inreference
|
||||
# key: inreference
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@inreference{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
booktitle = {${booktitle}},
|
||||
publisher = {${publisher}},
|
||||
year = {${year}}${,
|
||||
editor = {${editor}}}${,
|
||||
volume = {${volume}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
chapter = {${chapter}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,14 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: manual
|
||||
# key: manual
|
||||
# --
|
||||
@manual{ ${title},
|
||||
title = {${title}}${,
|
||||
author = {${author}}}${,
|
||||
organization = {${organization}}}${,
|
||||
address = {${address}}}${,
|
||||
editor = {${editor}}}${,
|
||||
month = {${month}}}${,
|
||||
year = {${year}}}${,
|
||||
note = {${note}}}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: masterthesis
|
||||
# key: masterthesis
|
||||
# --
|
||||
@masterthesis{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
school = {${school}},
|
||||
year = {${year}}${,
|
||||
type = {${type}}}${,
|
||||
address = {${address}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,14 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: misc
|
||||
# key: misc
|
||||
# --
|
||||
@misc{ ${title}${,
|
||||
author = {${author}}}${,
|
||||
title = {${title}}}${,
|
||||
howpublished = {${howpublished}}}${,
|
||||
month = {${month}}}${,
|
||||
year = {${year}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,23 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: mvbook
|
||||
# key: mvbook
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@mvbook{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
year = {${year}}${,
|
||||
volume = {${volume}}}${,
|
||||
editor = {${editor}}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
number = {${number}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
isbn = {${isbn}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: mvcollection
|
||||
# key: mvcollection
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@mvcollection{ ${title},
|
||||
editor = {${editor}},
|
||||
title = {${title}},
|
||||
year = {${year}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
volumes = {${volumes}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
chapter = {${chapter}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: mvereference
|
||||
# key: mvreference
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@mvreference{ ${title},
|
||||
editor = {${editor}},
|
||||
title = {${title}},
|
||||
year = {${year}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
volumes = {${volumes}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
chapter = {${chapter}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,14 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: online
|
||||
# key: online
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@online{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
year = {${year}},
|
||||
url = {${url}}${,
|
||||
editor = {${editor}}}${,
|
||||
urldate = {${urldate}}}${,
|
||||
note = {${note}}}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: patent
|
||||
# key: patent
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@patent{ ${title},
|
||||
title = {${title}},
|
||||
author = {${author}},
|
||||
number = {${number}},
|
||||
year = {${year}},
|
||||
holder = {${holder}}${,
|
||||
type = {${type}}}${,
|
||||
url = {${url}}}${,
|
||||
note = {${note}}}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: periodical
|
||||
# key: periodical
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@periodical{ ${title}
|
||||
editor = {${editor}},
|
||||
title = {${title}},
|
||||
year = {${year}}${,
|
||||
issue = {${issue}}}${,
|
||||
issuetitle = {${issuetitle}}}${,
|
||||
url = {${url}}}${,
|
||||
urldate = {${urldate}}}${,
|
||||
issn = {${issn}}}${,
|
||||
note = {${note}}}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: phdthesis
|
||||
# key: phdthesis
|
||||
# --
|
||||
@phdthesis{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
school = {${school}},
|
||||
year = {${year}}${,
|
||||
type = {${type}}}${,
|
||||
address = {${address}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,18 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: proceedings
|
||||
# key: proceedings
|
||||
# --
|
||||
@proceedings{ ${title},
|
||||
title = {${title}},
|
||||
year = {${year}}${,
|
||||
editor = {${editor}}}${,
|
||||
volume = {${volume}}}${,
|
||||
series = {${series}}}${,
|
||||
address = {${address}}}${,
|
||||
month = {${month}}}${,
|
||||
organization = {${organization}}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: reference
|
||||
# key: reference
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@reference{ ${title},
|
||||
editor = {${editor}},
|
||||
title = {${title}},
|
||||
year = {${year}}${,
|
||||
publisher = {${publisher}}}${,
|
||||
volume = {${volume}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
chapter = {${chapter}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,17 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: report
|
||||
# key: report
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@report{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
institution = {${institution}},
|
||||
year = {${year}},
|
||||
type = {${type}}${,
|
||||
address = {${address}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: set
|
||||
# key: set
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@set{${title},
|
||||
entryset = {${entryset}}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: software
|
||||
# key: software
|
||||
# --
|
||||
@software{ ${title}${,
|
||||
author = {${author}}}${,
|
||||
title = {${title}}}${,
|
||||
howpublished = {${howpublished}}}${,
|
||||
month = {${month}}}${,
|
||||
year = {${year}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: suppbook
|
||||
# key: suppbook
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@suppbook{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
chapter = {${chapter}}${,
|
||||
pages = {${pages}}},
|
||||
publisher = {${publisher}},
|
||||
year = {${year}},
|
||||
volume = {${volume}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
address = {${addre}ss}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,24 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: suppcollection
|
||||
# key: suppcollection
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@suppcollection{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
booktitle = {${booktitle}},
|
||||
publisher = {${publisher}},
|
||||
year = {${year}}${,
|
||||
editor = {${editor}}}${,
|
||||
volume = {${volume}}}${,
|
||||
series = {${series}}}${,
|
||||
type = {${type}}}${,
|
||||
chapter = {${chapter}}}${,
|
||||
pages = {${pages}}}${,
|
||||
address = {${address}}}${,
|
||||
edition = {${edition}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
|
@ -0,0 +1,18 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: suppperiodical
|
||||
# key: suppperiodical
|
||||
# author: Spenser Truex
|
||||
# --
|
||||
@suppperiodical{ ${title},
|
||||
author = {${author}},
|
||||
title = {${title}},
|
||||
journal = {${journal}},
|
||||
year = {${year}}${,
|
||||
volume = {${volume}}}${,
|
||||
number = {${number}}}${,
|
||||
pages = {${pages}}}${,
|
||||
month = {${month}}}${,
|
||||
note = {${note}}}
|
||||
}
|
||||
|
||||
$0
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue