dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b5e81943421257c634b18f481cdb376a9d5f7cfd
parent 2aec1a61ec8bf86b79d05bf3bbec05e77abe6279
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 14 Jun 2018 16:02:39 -0400

Update html/revealjs snippets, add anaconda to path

Diffstat:
Mlinks/.profile | 6++++--
Mlinks/.vim/UltiSnips/html.snippets | 25+++++++++++++++++--------
2 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/links/.profile b/links/.profile @@ -84,10 +84,12 @@ if [ -f /usr/local/Modules/default/init/zsh ]; then . /usr/local/Modules/default/init/zsh && \ #module load git vim #python paraview ncview matlab ifort anaconda module load git python/2.7.1 - [ -d /net/and/anaconda3/bin ] && export PATH="/net/and/anaconda3/bin:$PATH" - [ -d /work/and/anaconda3/bin ] && export PATH="/work/and/anaconda3/bin:$PATH" + [ -d /net/and/anaconda3/bin ] && export PATH=/net/and/anaconda3/bin:"$PATH" + [ -d /work/and/anaconda3/bin ] && export PATH=/work/and/anaconda3/bin:"$PATH" fi [ -f /etc/pki/tls/certs/ca-bundle.crt ] && export CURL_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt [ -d ~/code/basilisk/src ] && export BASILISK=~/code/basilisk/src [ -d ~/code/basilisk/src ] && export PATH=~/code/basilisk/src:$PATH + +[ -d /usr/local/anaconda3/bin ] && export PATH=/usr/local/anaconda3/bin:"$PATH" diff --git a/links/.vim/UltiSnips/html.snippets b/links/.vim/UltiSnips/html.snippets @@ -1,11 +1,8 @@ snippet slide "Insert a reveal.js slide with html formatting" -<section data-markdown> - <textarea data-template> - <h2>$1</h2> - - $0 +<section> + <h2>$1</h2> - </textarea> + $0 </section> endsnippet @@ -21,7 +18,19 @@ snippet markdownslide "Insert a reveal.js slide with Markdown formatting" endsnippet snippet code "Insert a code block in HTML syntax" -<pre><code data-trim data-noescape> -$1 +<pre><code class="hljs${1: python}" data-trim contenteditable> +$0 </code></pre> endsnippet + +snippet pyprompt "Insert the Python prompt with HTML symbols" +&gt;&gt;&gt; $0 +endsnippet + +snippet highlight "Highlight some reveal.js text with a color" +<span class="fragment highlight-${1:red}">$0</span> +endsnippet + +snippet fade "grow/shrink/fade-out/fade-{up,down,left,right}/current-visible" +<p class="fragment ${1:grow}">$0</p> +endsnippet