Browse Source

Merge branch 'master' of git.juliobiason.me:dotfiles

master
Julio Biason 4 years ago
parent
commit
0be9933cc8
  1. 5
      emacs.d/init.el
  2. 8
      emacs.d/snippets/markdown-mode/.yas-compiled-snippets.el
  3. 15
      emacs.d/snippets/markdown-mode/header
  4. 5
      emacs.d/snippets/markdown-mode/stars
  5. 2
      emacs.d/snippets/python-mode/.yas-compiled-snippets.el
  6. 2
      emacs.d/snippets/rust-mode/.yas-compiled-snippets.el
  7. 20
      nvim/UltiSnips/markdown.snippets
  8. 2
      nvim/init.vim

5
emacs.d/init.el

@ -111,6 +111,11 @@
(setq whitespace-style '(face empty tabs lines-tail trailing))
(global-whitespace-mode t)
;; Snippets
(use-package yasnippet
:ensure t)
(yas-global-mode 1)
;; auto-pairs
(electric-pair-mode 1)

8
emacs.d/snippets/markdown-mode/.yas-compiled-snippets.el

@ -0,0 +1,8 @@
;;; Compiled snippets and support files for `markdown-mode'
;;; Snippet definitions:
;;;
(yas-define-snippets 'markdown-mode
'(("header" "+++\ntitle = \"${1:title}\"\ndate = `(format-time-string \"%Y-%m-%d\")`\n\n[taxonomies]\ntags = [\"${3:tag}\"]\n+++\n\n$0\n\n<!-- more -->" "Markdown header" nil nil nil "/home/juliobiason/.emacs.d/snippets/markdown-mode/header" nil nil)))
;;; Do not edit! File generated at Sun Dec 13 13:51:57 2020

15
emacs.d/snippets/markdown-mode/header

@ -0,0 +1,15 @@
-*- mode: snippet -*-
# name: Markdown header
# key: header
# --
+++
title = "${1:title}"
date = `(format-time-string "%Y-%m-%d")`
[taxonomies]
tags = ["${3:tag}"]
+++
$0
<!-- more -->

5
emacs.d/snippets/markdown-mode/stars

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: stars
# key: stars
# --
{{ stars(stars=${1:stars}) }}

2
emacs.d/snippets/python-mode/.yas-compiled-snippets.el

@ -0,0 +1,2 @@
;;; Compiled snippets and support files for `python-mode'
;;; Do not edit! File generated at Sun Dec 13 13:51:57 2020

2
emacs.d/snippets/rust-mode/.yas-compiled-snippets.el

@ -0,0 +1,2 @@
;;; Compiled snippets and support files for `rust-mode'
;;; Do not edit! File generated at Sun Dec 13 13:51:57 2020

20
nvim/UltiSnips/markdown.snippets

@ -13,9 +13,27 @@ $0
endsnippet
snippet pt
<!-- vim:spelllang=pt: -->
$0
<!--
vim:spelllang=pt:
-->
endsnippet
snippet date
`date +%Y-%m-%d`
endsnippet
snippet stars
{{ stars(stars=${1:stars}) }}
$0
endsnippet
snippet note
{% note() %}
$1
{% end %}
$0
endsnippet

2
nvim/init.vim

@ -74,7 +74,7 @@ nnoremap <silent> <leader>] :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <leader>k :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> <leader>r :call LanguageClient#textDocument_rename()<CR>
nnoremap <silent> <leader>f :call LanguageClient#textDocument_codeAction()<CR>
nnoremap <silent> <leader>? :call LanguageClient#explainErrorAtPoint()<CR>
nnoremap <silent> <leader>? :call LanguageClient_contextMenu()<CR>
" }}}
" }}}

Loading…
Cancel
Save