Parcourir la source

Addded ox-hugo and more c# snippets

master
Josh Wolfe il y a 2 ans
Parent
révision
a562880a77

+ 10
- 0
emacs/.emacs.d/README.org Voir le fichier

@@ -961,6 +961,16 @@ minted package for PDF export.
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
#+END_SRC

*** Hugo

#+BEGIN_SRC emacs-lisp :tangle yes
(use-package ox-hugo
:after ox
:config
(setq org-tags-column -63)
(setq org-hugo-front-matter-format "yaml"))
#+END_SRC

** Org Tree Slide

Presentation mode that runs from within an org document. I add a custom hook for [[Org Tree Slides Set Transient Map][a function]] that

+ 2
- 2
emacs/.emacs.d/snippets/csharp-mode/class Voir le fichier

@@ -8,9 +8,9 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ${1:namespace}
namespace ${1:Namespace}
{
class ${2:name}
class ${2:Name}
{
$0
}

+ 9
- 0
emacs/.emacs.d/snippets/csharp-mode/for Voir le fichier

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: for
# key: for
# --
for (int i = 0; i < ${1:max}; i++)
{
${2:body;}
}
$0

+ 9
- 0
emacs/.emacs.d/snippets/csharp-mode/foreach Voir le fichier

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: foreach
# key: fore
# --
foreach (var ${1:itr} in ${2:iterable})
{
${3:body;}
}
$0

+ 17
- 0
emacs/.emacs.d/snippets/csharp-mode/interface Voir le fichier

@@ -0,0 +1,17 @@
# -*- mode: snippet -*-
# name: interface
# key: interface
# --
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ${1:Namespace}
{
interface ${2:IName}
{
$0
}
}

+ 12
- 0
emacs/.emacs.d/snippets/csharp-mode/try Voir le fichier

@@ -0,0 +1,12 @@
# key: try
# name: try
# --
try
{
${1:block;}
}
catch (${2:Exception e})
{
${3:handle;}
}
$0

Chargement…
Annuler
Enregistrer