From 4e57fb98342dd3cce7faa38e25c8ec2014a21865 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 22 Apr 2024 15:25:08 +0200 Subject: Update markdown-mode, yasnippet, yasnippet-snippets and add snippets/markdown-mode --- .emacs.d/lisp/markdown-mode.el | 204 +++++++++++++-------- .emacs.d/lisp/yasnippet.el | 25 +-- .emacs.d/snippets/markdown-mode/back-quote | 6 + .emacs.d/snippets/markdown-mode/code | 7 + .emacs.d/snippets/markdown-mode/emphasis | 6 + .emacs.d/snippets/markdown-mode/h1.1 | 8 + .emacs.d/snippets/markdown-mode/h1.2 | 9 + .emacs.d/snippets/markdown-mode/h2.1 | 8 + .emacs.d/snippets/markdown-mode/h2.2 | 9 + .emacs.d/snippets/markdown-mode/h3 | 8 + .emacs.d/snippets/markdown-mode/h4 | 8 + .emacs.d/snippets/markdown-mode/h5 | 8 + .emacs.d/snippets/markdown-mode/h6 | 8 + .emacs.d/snippets/markdown-mode/highlight | 8 + .emacs.d/snippets/markdown-mode/hr.1 | 9 + .emacs.d/snippets/markdown-mode/hr.2 | 9 + .emacs.d/snippets/markdown-mode/hyphen | 7 + .emacs.d/snippets/markdown-mode/img | 6 + .emacs.d/snippets/markdown-mode/link | 6 + .emacs.d/snippets/markdown-mode/ordered-list | 7 + .emacs.d/snippets/markdown-mode/plus | 7 + .emacs.d/snippets/markdown-mode/rimg | 6 + .emacs.d/snippets/markdown-mode/rlb | 7 + .emacs.d/snippets/markdown-mode/rlink | 6 + .emacs.d/snippets/markdown-mode/strong-emphasis | 6 + .emacs.d/snippets/markdown-mode/utf8 | 7 + .emacs.d/snippets/prog-mode/.yas-setup.el | 6 +- .../snippets/python-mode.statnett/.yas-setup.el | 1 + .emacs.d/snippets/python-mode/.yas-setup.el | 1 + .emacs.d/snippets/yasnippet-snippets.el | 77 ++++++++ 30 files changed, 396 insertions(+), 94 deletions(-) create mode 100644 .emacs.d/snippets/markdown-mode/back-quote create mode 100644 .emacs.d/snippets/markdown-mode/code create mode 100644 .emacs.d/snippets/markdown-mode/emphasis create mode 100644 .emacs.d/snippets/markdown-mode/h1.1 create mode 100644 .emacs.d/snippets/markdown-mode/h1.2 create mode 100644 .emacs.d/snippets/markdown-mode/h2.1 create mode 100644 .emacs.d/snippets/markdown-mode/h2.2 create mode 100644 .emacs.d/snippets/markdown-mode/h3 create mode 100644 .emacs.d/snippets/markdown-mode/h4 create mode 100644 .emacs.d/snippets/markdown-mode/h5 create mode 100644 .emacs.d/snippets/markdown-mode/h6 create mode 100644 .emacs.d/snippets/markdown-mode/highlight create mode 100644 .emacs.d/snippets/markdown-mode/hr.1 create mode 100644 .emacs.d/snippets/markdown-mode/hr.2 create mode 100644 .emacs.d/snippets/markdown-mode/hyphen create mode 100644 .emacs.d/snippets/markdown-mode/img create mode 100644 .emacs.d/snippets/markdown-mode/link create mode 100644 .emacs.d/snippets/markdown-mode/ordered-list create mode 100644 .emacs.d/snippets/markdown-mode/plus create mode 100644 .emacs.d/snippets/markdown-mode/rimg create mode 100644 .emacs.d/snippets/markdown-mode/rlb create mode 100644 .emacs.d/snippets/markdown-mode/rlink create mode 100644 .emacs.d/snippets/markdown-mode/strong-emphasis create mode 100644 .emacs.d/snippets/markdown-mode/utf8 create mode 100644 .emacs.d/snippets/yasnippet-snippets.el (limited to '.emacs.d') diff --git a/.emacs.d/lisp/markdown-mode.el b/.emacs.d/lisp/markdown-mode.el index 1514edb..c27ebbc 100644 --- a/.emacs.d/lisp/markdown-mode.el +++ b/.emacs.d/lisp/markdown-mode.el @@ -4432,87 +4432,131 @@ if three backquotes inserted at the beginning of line." ;; scripts/get-recognized-gfm-languages.el. that produces a single long sexp, ;; but with appropriate use of a keyboard macro, indenting and filling it ;; properly is pretty fast. - '("1C-Enterprise" "4D" "ABAP" "ABNF" "AGS-Script" "AMPL" "ANTLR" - "API-Blueprint" "APL" "ASN.1" "ASP" "ATS" "ActionScript" "Ada" + '("1C-Enterprise" "2-Dimensional-Array" "4D" "ABAP" "ABAP-CDS" "ABNF" + "AGS-Script" "AIDL" "AL" "AMPL" "ANTLR" "API-Blueprint" "APL" "ASL" + "ASN.1" "ASP.NET" "ATS" "ActionScript" "Ada" "Adblock-Filter-List" "Adobe-Font-Metrics" "Agda" "Alloy" "Alpine-Abuild" "Altium-Designer" - "AngelScript" "Ant-Build-System" "ApacheConf" "Apex" - "Apollo-Guidance-Computer" "AppleScript" "Arc" "AsciiDoc" "AspectJ" "Assembly" - "Asymptote" "Augeas" "AutoHotkey" "AutoIt" "Awk" "Ballerina" "Batchfile" - "Befunge" "BibTeX" "Bison" "BitBake" "Blade" "BlitzBasic" "BlitzMax" - "Bluespec" "Boo" "Brainfuck" "Brightscript" "C#" "C++" "C-ObjDump" - "C2hs-Haskell" "CLIPS" "CMake" "COBOL" "COLLADA" "CSON" "CSS" "CSV" "CWeb" - "Cabal-Config" "Cap'n-Proto" "CartoCSS" "Ceylon" "Chapel" "Charity" "ChucK" - "Cirru" "Clarion" "Clean" "Click" "Clojure" "Closure-Templates" - "Cloud-Firestore-Security-Rules" "CoNLL-U" "CodeQL" "CoffeeScript" - "ColdFusion" "ColdFusion-CFC" "Common-Lisp" "Common-Workflow-Language" - "Component-Pascal" "Cool" "Coq" "Cpp-ObjDump" "Creole" "Crystal" "Csound" - "Csound-Document" "Csound-Score" "Cuda" "Cycript" "Cython" "D-ObjDump" - "DIGITAL-Command-Language" "DM" "DNS-Zone" "DTrace" "Dafny" "Darcs-Patch" - "Dart" "DataWeave" "Dhall" "Diff" "DirectX-3D-File" "Dockerfile" "Dogescript" - "Dylan" "EBNF" "ECL" "ECLiPSe" "EJS" "EML" "EQ" "Eagle" "Easybuild" - "Ecere-Projects" "EditorConfig" "Edje-Data-Collection" "Eiffel" "Elixir" "Elm" - "Emacs-Lisp" "EmberScript" "Erlang" "F#" "F*" "FIGlet-Font" "FLUX" "Factor" - "Fancy" "Fantom" "Faust" "Filebench-WML" "Filterscript" "Formatted" "Forth" - "Fortran" "Fortran-Free-Form" "FreeMarker" "Frege" "G-code" "GAML" "GAMS" - "GAP" "GCC-Machine-Description" "GDB" "GDScript" "GEDCOM" "GLSL" "GN" - "Game-Maker-Language" "Genie" "Genshi" "Gentoo-Ebuild" "Gentoo-Eclass" - "Gerber-Image" "Gettext-Catalog" "Gherkin" "Git-Attributes" "Git-Config" - "Glyph" "Glyph-Bitmap-Distribution-Format" "Gnuplot" "Go" "Golo" "Gosu" - "Grace" "Gradle" "Grammatical-Framework" "Graph-Modeling-Language" "GraphQL" - "Graphviz-(DOT)" "Groovy" "Groovy-Server-Pages" "HAProxy" "HCL" "HLSL" "HTML" - "HTML+Django" "HTML+ECR" "HTML+EEX" "HTML+ERB" "HTML+PHP" "HTML+Razor" "HTTP" - "HXML" "Hack" "Haml" "Handlebars" "Harbour" "Haskell" "Haxe" "HiveQL" "HolyC" - "Hy" "HyPhy" "IDL" "IGOR-Pro" "INI" "IRC-log" "Idris" "Ignore-List" "Inform-7" - "Inno-Setup" "Io" "Ioke" "Isabelle" "Isabelle-ROOT" "JFlex" "JSON" - "JSON-with-Comments" "JSON5" "JSONLD" "JSONiq" "JSX" "Jasmin" "Java" - "Java-Properties" "Java-Server-Pages" "JavaScript" "JavaScript+ERB" "Jison" - "Jison-Lex" "Jolie" "Jsonnet" "Julia" "Jupyter-Notebook" "KRL" "KiCad-Layout" - "KiCad-Legacy-Layout" "KiCad-Schematic" "Kit" "Kotlin" "LFE" "LLVM" "LOLCODE" - "LSL" "LTspice-Symbol" "LabVIEW" "Lasso" "Latte" "Lean" "Less" "Lex" - "LilyPond" "Limbo" "Linker-Script" "Linux-Kernel-Module" "Liquid" - "Literate-Agda" "Literate-CoffeeScript" "Literate-Haskell" "LiveScript" - "Logos" "Logtalk" "LookML" "LoomScript" "Lua" "M4" "M4Sugar" "MATLAB" - "MAXScript" "MLIR" "MQL4" "MQL5" "MTML" "MUF" "Macaulay2" "Makefile" "Mako" - "Markdown" "Marko" "Mask" "Mathematica" "Maven-POM" "Max" "MediaWiki" - "Mercury" "Meson" "Metal" "Microsoft-Developer-Studio-Project" "MiniD" "Mirah" - "Modelica" "Modula-2" "Modula-3" "Module-Management-System" "Monkey" "Moocode" - "MoonScript" "Motorola-68K-Assembly" "Muse" "Myghty" "NASL" "NCL" "NEON" "NL" - "NPM-Config" "NSIS" "Nearley" "Nemerle" "NetLinx" "NetLinx+ERB" "NetLogo" - "NewLisp" "Nextflow" "Nginx" "Nim" "Ninja" "Nit" "Nix" "Nu" "NumPy" "OCaml" - "ObjDump" "Object-Data-Instance-Notation" "ObjectScript" "Objective-C" - "Objective-C++" "Objective-J" "Odin" "Omgrofl" "Opa" "Opal" - "Open-Policy-Agent" "OpenCL" "OpenEdge-ABL" "OpenQASM" "OpenRC-runscript" - "OpenSCAD" "OpenStep-Property-List" "OpenType-Feature-File" "Org" "Ox" - "Oxygene" "Oz" "P4" "PHP" "PLSQL" "PLpgSQL" "POV-Ray-SDL" "Pan" "Papyrus" - "Parrot" "Parrot-Assembly" "Parrot-Internal-Representation" "Pascal" "Pawn" - "Pep8" "Perl" "Pic" "Pickle" "PicoLisp" "PigLatin" "Pike" "PlantUML" "Pod" - "Pod-6" "PogoScript" "Pony" "PostCSS" "PostScript" "PowerBuilder" "PowerShell" - "Prisma" "Processing" "Proguard" "Prolog" "Propeller-Spin" "Protocol-Buffer" - "Public-Key" "Pug" "Puppet" "Pure-Data" "PureBasic" "PureScript" "Python" - "Python-console" "Python-traceback" "QML" "QMake" "Quake" "RAML" "RDoc" - "REALbasic" "REXX" "RHTML" "RMarkdown" "RPC" "RPM-Spec" "RUNOFF" "Racket" - "Ragel" "Raku" "Rascal" "Raw-token-data" "Readline-Config" "Reason" "Rebol" - "Red" "Redcode" "Regular-Expression" "Ren'Py" "RenderScript" - "Rich-Text-Format" "Ring" "Riot" "RobotFramework" "Roff" "Roff-Manpage" - "Rouge" "Ruby" "Rust" "SAS" "SCSS" "SMT" "SPARQL" "SQF" "SQL" "SQLPL" - "SRecode-Template" "SSH-Config" "STON" "SVG" "SWIG" "Sage" "SaltStack" "Sass" - "Scala" "Scaml" "Scheme" "Scilab" "Self" "ShaderLab" "Shell" "ShellSession" - "Shen" "Slash" "Slice" "Slim" "SmPL" "Smali" "Smalltalk" "Smarty" "Solidity" - "SourcePawn" "Spline-Font-Database" "Squirrel" "Stan" "Standard-ML" "Starlark" - "Stata" "Stylus" "SubRip-Text" "SugarSS" "SuperCollider" "Svelte" "Swift" - "SystemVerilog" "TI-Program" "TLA" "TOML" "TSQL" "TSX" "TXL" "Tcl" "Tcsh" - "TeX" "Tea" "Terra" "Texinfo" "Text" "Textile" "Thrift" "Turing" "Turtle" - "Twig" "Type-Language" "TypeScript" "Unified-Parallel-C" "Unity3D-Asset" - "Unix-Assembly" "Uno" "UnrealScript" "UrWeb" "VBA" "VBScript" "VCL" "VHDL" - "Vala" "Verilog" "Vim-Snippet" "Vim-script" "Visual-Basic-.NET" "Volt" "Vue" - "Wavefront-Material" "Wavefront-Object" "Web-Ontology-Language" "WebAssembly" - "WebIDL" "WebVTT" "Wget-Config" "Windows-Registry-Entries" "Wollok" - "World-of-Warcraft-Addon-Data" "X-BitMap" "X-Font-Directory-Index" "X-PixMap" - "X10" "XC" "XCompose" "XML" "XML-Property-List" "XPages" "XProc" "XQuery" "XS" - "XSLT" "Xojo" "Xtend" "YAML" "YANG" "YARA" "YASnippet" "Yacc" "ZAP" "ZIL" - "Zeek" "ZenScript" "Zephir" "Zig" "Zimpl" "cURL-Config" "desktop" "dircolors" - "eC" "edn" "fish" "mIRC-Script" "mcfunction" "mupad" "nanorc" "nesC" "ooc" - "reStructuredText" "sed" "wdl" "wisp" "xBase") + "AngelScript" "Ant-Build-System" "Antlers" "ApacheConf" "Apex" + "Apollo-Guidance-Computer" "AppleScript" "Arc" "AsciiDoc" "AspectJ" + "Assembly" "Astro" "Asymptote" "Augeas" "AutoHotkey" "AutoIt" + "Avro-IDL" "Awk" "BASIC" "Ballerina" "Batchfile" "Beef" "Befunge" + "Berry" "BibTeX" "Bicep" "Bikeshed" "Bison" "BitBake" "Blade" + "BlitzBasic" "BlitzMax" "Bluespec" "Bluespec-BH" "Boo" "Boogie" + "Brainfuck" "BrighterScript" "Brightscript" "Browserslist" "C" "C#" + "C++" "C-ObjDump" "C2hs-Haskell" "CAP-CDS" "CIL" "CLIPS" "CMake" + "COBOL" "CODEOWNERS" "COLLADA" "CSON" "CSS" "CSV" "CUE" "CWeb" + "Cabal-Config" "Cadence" "Cairo" "CameLIGO" "Cap'n-Proto" "CartoCSS" + "Ceylon" "Chapel" "Charity" "Checksums" "ChucK" "Circom" "Cirru" + "Clarion" "Clarity" "Classic-ASP" "Clean" "Click" "Clojure" + "Closure-Templates" "Cloud-Firestore-Security-Rules" "CoNLL-U" + "CodeQL" "CoffeeScript" "ColdFusion" "ColdFusion-CFC" "Common-Lisp" + "Common-Workflow-Language" "Component-Pascal" "Cool" "Coq" + "Cpp-ObjDump" "Creole" "Crystal" "Csound" "Csound-Document" + "Csound-Score" "Cuda" "Cue-Sheet" "Curry" "Cycript" "Cypher" "Cython" + "D" "D-ObjDump" "D2" "DIGITAL-Command-Language" "DM" "DNS-Zone" + "DTrace" "Dafny" "Darcs-Patch" "Dart" "DataWeave" + "Debian-Package-Control-File" "DenizenScript" "Dhall" "Diff" + "DirectX-3D-File" "Dockerfile" "Dogescript" "Dotenv" "Dylan" "E" + "E-mail" "EBNF" "ECL" "ECLiPSe" "EJS" "EQ" "Eagle" "Earthly" + "Easybuild" "Ecere-Projects" "Ecmarkup" "Edge" "EdgeQL" + "EditorConfig" "Edje-Data-Collection" "Eiffel" "Elixir" "Elm" + "Elvish" "Elvish-Transcript" "Emacs-Lisp" "EmberScript" "Erlang" + "Euphoria" "F#" "F*" "FIGlet-Font" "FLUX" "Factor" "Fancy" "Fantom" + "Faust" "Fennel" "Filebench-WML" "Filterscript" "Fluent" "Formatted" + "Forth" "Fortran" "Fortran-Free-Form" "FreeBasic" "FreeMarker" + "Frege" "Futhark" "G-code" "GAML" "GAMS" "GAP" + "GCC-Machine-Description" "GDB" "GDScript" "GEDCOM" "GLSL" "GN" "GSC" + "Game-Maker-Language" "Gemfile.lock" "Gemini" "Genero-4gl" + "Genero-per" "Genie" "Genshi" "Gentoo-Ebuild" "Gentoo-Eclass" + "Gerber-Image" "Gettext-Catalog" "Gherkin" "Git-Attributes" + "Git-Config" "Git-Revision-List" "Gleam" "Glimmer-JS" "Glimmer-TS" + "Glyph" "Glyph-Bitmap-Distribution-Format" "Gnuplot" "Go" + "Go-Checksums" "Go-Module" "Go-Workspace" "Godot-Resource" "Golo" + "Gosu" "Grace" "Gradle" "Gradle-Kotlin-DSL" "Grammatical-Framework" + "Graph-Modeling-Language" "GraphQL" "Graphviz-(DOT)" "Groovy" + "Groovy-Server-Pages" "HAProxy" "HCL" "HLSL" "HOCON" "HTML" + "HTML+ECR" "HTML+EEX" "HTML+ERB" "HTML+PHP" "HTML+Razor" "HTTP" + "HXML" "Hack" "Haml" "Handlebars" "Harbour" "Haskell" "Haxe" "HiveQL" + "HolyC" "Hosts-File" "Hy" "HyPhy" "IDL" "IGOR-Pro" "INI" "IRC-log" + "Idris" "Ignore-List" "ImageJ-Macro" "Imba" "Inform-7" "Ink" + "Inno-Setup" "Io" "Ioke" "Isabelle" "Isabelle-ROOT" "J" + "JAR-Manifest" "JCL" "JFlex" "JSON" "JSON-with-Comments" "JSON5" + "JSONLD" "JSONiq" "Janet" "Jasmin" "Java" "Java-Properties" + "Java-Server-Pages" "JavaScript" "JavaScript+ERB" "Jest-Snapshot" + "JetBrains-MPS" "Jinja" "Jison" "Jison-Lex" "Jolie" "Jsonnet" "Julia" + "Jupyter-Notebook" "Just" "KRL" "Kaitai-Struct" "KakouneScript" + "KerboScript" "KiCad-Layout" "KiCad-Legacy-Layout" "KiCad-Schematic" + "Kickstart" "Kit" "Kotlin" "Kusto" "LFE" "LLVM" "LOLCODE" "LSL" + "LTspice-Symbol" "LabVIEW" "Lark" "Lasso" "Latte" "Lean" "Lean-4" + "Less" "Lex" "LigoLANG" "LilyPond" "Limbo" "Linker-Script" + "Linux-Kernel-Module" "Liquid" "Literate-Agda" + "Literate-CoffeeScript" "Literate-Haskell" "LiveScript" "Logos" + "Logtalk" "LookML" "LoomScript" "Lua" "M" "M4" "M4Sugar" "MATLAB" + "MAXScript" "MDX" "MLIR" "MQL4" "MQL5" "MTML" "MUF" "Macaulay2" + "Makefile" "Mako" "Markdown" "Marko" "Mask" "Mathematica" "Maven-POM" + "Max" "Mercury" "Mermaid" "Meson" "Metal" + "Microsoft-Developer-Studio-Project" + "Microsoft-Visual-Studio-Solution" "MiniD" "MiniYAML" "Mint" "Mirah" + "Modelica" "Modula-2" "Modula-3" "Module-Management-System" "Mojo" + "Monkey" "Monkey-C" "Moocode" "MoonScript" "Motoko" + "Motorola-68K-Assembly" "Move" "Muse" "Mustache" "Myghty" "NASL" + "NCL" "NEON" "NL" "NPM-Config" "NSIS" "NWScript" "Nasal" "Nearley" + "Nemerle" "NetLinx" "NetLinx+ERB" "NetLogo" "NewLisp" "Nextflow" + "Nginx" "Nim" "Ninja" "Nit" "Nix" "Nu" "NumPy" "Nunjucks" "Nushell" + "OASv2-json" "OASv2-yaml" "OASv3-json" "OASv3-yaml" "OCaml" "Oberon" + "ObjDump" "Object-Data-Instance-Notation" "ObjectScript" + "Objective-C" "Objective-C++" "Objective-J" "Odin" "Omgrofl" "Opa" + "Opal" "Open-Policy-Agent" "OpenAPI-Specification-v2" + "OpenAPI-Specification-v3" "OpenCL" "OpenEdge-ABL" "OpenQASM" + "OpenRC-runscript" "OpenSCAD" "OpenStep-Property-List" + "OpenType-Feature-File" "Option-List" "Org" "Ox" "Oxygene" "Oz" "P4" + "PDDL" "PEG.js" "PHP" "PLSQL" "PLpgSQL" "POV-Ray-SDL" "Pact" "Pan" + "Papyrus" "Parrot" "Parrot-Assembly" "Parrot-Internal-Representation" + "Pascal" "Pawn" "Pep8" "Perl" "Pic" "Pickle" "PicoLisp" "PigLatin" + "Pike" "Pip-Requirements" "PlantUML" "Pod" "Pod-6" "PogoScript" + "Polar" "Pony" "Portugol" "PostCSS" "PostScript" "PowerBuilder" + "PowerShell" "Praat" "Prisma" "Processing" "Procfile" "Proguard" + "Prolog" "Promela" "Propeller-Spin" "Protocol-Buffer" + "Protocol-Buffer-Text-Format" "Public-Key" "Pug" "Puppet" "Pure-Data" + "PureBasic" "PureScript" "Pyret" "Python" "Python-console" + "Python-traceback" "Q#" "QML" "QMake" "Qt-Script" "Quake" "R" "RAML" + "RBS" "RDoc" "REALbasic" "REXX" "RMarkdown" "RPC" "RPGLE" "RPM-Spec" + "RUNOFF" "Racket" "Ragel" "Raku" "Rascal" "Raw-token-data" "ReScript" + "Readline-Config" "Reason" "ReasonLIGO" "Rebol" "Record-Jar" "Red" + "Redcode" "Redirect-Rules" "Regular-Expression" "Ren'Py" + "RenderScript" "Rez" "Rich-Text-Format" "Ring" "Riot" + "RobotFramework" "Roc" "Roff" "Roff-Manpage" "Rouge" + "RouterOS-Script" "Ruby" "Rust" "SAS" "SCSS" "SELinux-Policy" "SMT" + "SPARQL" "SQF" "SQL" "SQLPL" "SRecode-Template" "SSH-Config" "STAR" + "STL" "STON" "SVG" "SWIG" "Sage" "SaltStack" "Sass" "Scala" "Scaml" + "Scenic" "Scheme" "Scilab" "Self" "ShaderLab" "Shell" + "ShellCheck-Config" "ShellSession" "Shen" "Sieve" + "Simple-File-Verification" "Singularity" "Slash" "Slice" "Slim" + "Slint" "SmPL" "Smali" "Smalltalk" "Smarty" "Smithy" "Snakemake" + "Solidity" "Soong" "SourcePawn" "Spline-Font-Database" "Squirrel" + "Stan" "Standard-ML" "Starlark" "Stata" "StringTemplate" "Stylus" + "SubRip-Text" "SugarSS" "SuperCollider" "Svelte" "Sway" "Sweave" + "Swift" "SystemVerilog" "TI-Program" "TL-Verilog" "TLA" "TOML" "TSQL" + "TSV" "TSX" "TXL" "Talon" "Tcl" "Tcsh" "TeX" "Tea" "Terra" + "Terraform-Template" "Texinfo" "Text" "TextGrid" + "TextMate-Properties" "Textile" "Thrift" "Toit" "Turing" "Turtle" + "Twig" "Type-Language" "TypeScript" "Typst" "Unified-Parallel-C" + "Unity3D-Asset" "Unix-Assembly" "Uno" "UnrealScript" "UrWeb" "V" + "VBA" "VBScript" "VCL" "VHDL" "Vala" "Valve-Data-Format" + "Velocity-Template-Language" "Verilog" "Vim-Help-File" "Vim-Script" + "Vim-Snippet" "Visual-Basic-.NET" "Visual-Basic-6.0" "Volt" "Vue" + "Vyper" "WDL" "WGSL" "Wavefront-Material" "Wavefront-Object" + "Web-Ontology-Language" "WebAssembly" "WebAssembly-Interface-Type" + "WebIDL" "WebVTT" "Wget-Config" "Whiley" "Wikitext" + "Win32-Message-File" "Windows-Registry-Entries" "Witcher-Script" + "Wollok" "World-of-Warcraft-Addon-Data" "Wren" "X-BitMap" + "X-Font-Directory-Index" "X-PixMap" "X10" "XC" "XCompose" "XML" + "XML-Property-List" "XPages" "XProc" "XQuery" "XS" "XSLT" "Xojo" + "Xonsh" "Xtend" "YAML" "YANG" "YARA" "YASnippet" "Yacc" "Yul" "ZAP" + "ZIL" "Zeek" "ZenScript" "Zephir" "Zig" "Zimpl" "cURL-Config" + "desktop" "dircolors" "eC" "edn" "fish" "hoon" "jq" "kvlang" + "mIRC-Script" "mcfunction" "mupad" "nanorc" "nesC" "ooc" "q" + "reStructuredText" "robots.txt" "sed" "wisp" "xBase") "Language specifiers recognized by GitHub's syntax highlighting features.") (defvar-local markdown-gfm-used-languages nil diff --git a/.emacs.d/lisp/yasnippet.el b/.emacs.d/lisp/yasnippet.el index fa36be7..0d52a96 100644 --- a/.emacs.d/lisp/yasnippet.el +++ b/.emacs.d/lisp/yasnippet.el @@ -848,18 +848,19 @@ which decides on the snippet to expand.") (cons (if (eq mode 'fundamental-mode) () (append (cdr ap) '(fundamental-mode))) extras)))) - (cons mode - (yas--merge-ordered-lists - (mapcar #'yas--all-parents - (remq nil - `(,(or (get mode 'derived-mode-parent) - ;; Consider `fundamental-mode' - ;; as ultimate ancestor. - 'fundamental-mode) - ,(let ((alias (symbol-function mode))) - (when (symbolp alias) alias)) - ,@(get mode 'derived-mode-extra-parents) - ,@(gethash mode yas--parents))))))))) + (delete-dups + (cons mode + (yas--merge-ordered-lists + (mapcar #'yas--all-parents + (remq nil + `(,(or (get mode 'derived-mode-parent) + ;; Consider `fundamental-mode' + ;; as ultimate ancestor. + 'fundamental-mode) + ,(let ((alias (symbol-function mode))) + (when (symbolp alias) alias)) + ,@(get mode 'derived-mode-extra-parents) + ,@(gethash mode yas--parents)))))))))) (dolist (parent all-parents) (cl-pushnew mode (get parent 'yas--cached-children))) (put mode 'yas--all-parents all-parents))))) diff --git a/.emacs.d/snippets/markdown-mode/back-quote b/.emacs.d/snippets/markdown-mode/back-quote new file mode 100644 index 0000000..519fe14 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/back-quote @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Inline Code +# contributor: Peng Deng +# key: ` +# -- +\`${1:Code}\` $0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/code b/.emacs.d/snippets/markdown-mode/code new file mode 100644 index 0000000..4289e72 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/code @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Code block +# key: code +# -- +\`\`\`$1 +$0 +\`\`\` diff --git a/.emacs.d/snippets/markdown-mode/emphasis b/.emacs.d/snippets/markdown-mode/emphasis new file mode 100644 index 0000000..0ef6878 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/emphasis @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Emphasis +# contributor: Peng Deng +# key: _ +# -- +_${1:Text}_ $0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/h1.1 b/.emacs.d/snippets/markdown-mode/h1.1 new file mode 100644 index 0000000..534337a --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h1.1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Header 1 (#) +# contributor: Peng Deng +# key: h1 +# -- +# ${1:Header 1} # + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/h1.2 b/.emacs.d/snippets/markdown-mode/h1.2 new file mode 100644 index 0000000..dbf567c --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h1.2 @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Header 1 (=) +# contributor: Peng Deng +# key: h1 +# -- +${1:Header 1} +${1:$(make-string (string-width yas-text) ?\=)} + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/h2.1 b/.emacs.d/snippets/markdown-mode/h2.1 new file mode 100644 index 0000000..7830c97 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h2.1 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Header 2 (##) +# contributor: Peng Deng +# key: h2 +# -- +## ${1:Header 1} ## + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/h2.2 b/.emacs.d/snippets/markdown-mode/h2.2 new file mode 100644 index 0000000..16baba9 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h2.2 @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Header 2 (-) +# contributor: Peng Deng +# key: h2 +# -- +${1:Header 2} +${1:$(make-string (string-width yas-text) ?\-)} + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/h3 b/.emacs.d/snippets/markdown-mode/h3 new file mode 100644 index 0000000..ba2a552 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h3 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Header 3 +# contributor: Peng Deng +# key: h3 +# -- +### ${1:Header 3} ### + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/h4 b/.emacs.d/snippets/markdown-mode/h4 new file mode 100644 index 0000000..d9f5ec6 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h4 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Header 4 +# contributor: Peng Deng +# key: h4 +# -- +#### ${1:Header 4} #### + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/h5 b/.emacs.d/snippets/markdown-mode/h5 new file mode 100644 index 0000000..08fc8f1 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h5 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Header 5 +# contributor: Peng Deng +# key: h5 +# -- +##### ${1:Header 5} ##### + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/h6 b/.emacs.d/snippets/markdown-mode/h6 new file mode 100644 index 0000000..24b974d --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/h6 @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Header 6 +# contributor: Peng Deng +# key: h6 +# -- +###### ${1:Header 6} ###### + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/highlight b/.emacs.d/snippets/markdown-mode/highlight new file mode 100644 index 0000000..2e47e18 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/highlight @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Highlight +# contributor: nguyenvinhlinh +# key: highlight +# -- +{% highlight ${1:language} %} +${0:content} +{% endhighlight %} \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/hr.1 b/.emacs.d/snippets/markdown-mode/hr.1 new file mode 100644 index 0000000..579ba01 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/hr.1 @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Horizontal Rule (-) +# contributor: Peng Deng +# key: hr +# -- + +---------- + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/hr.2 b/.emacs.d/snippets/markdown-mode/hr.2 new file mode 100644 index 0000000..4d34e2f --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/hr.2 @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Horizontal Rule (*) +# contributor: Peng Deng +# key: hr +# -- + +******* + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/hyphen b/.emacs.d/snippets/markdown-mode/hyphen new file mode 100644 index 0000000..8827292 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/hyphen @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Unordered List - +# contributor: Peng Deng +# key: - +# -- +- ${1:Text} +- $0 diff --git a/.emacs.d/snippets/markdown-mode/img b/.emacs.d/snippets/markdown-mode/img new file mode 100644 index 0000000..9a0db4f --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/img @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Image +# contributor: Peng Deng +# key: img +# -- +![${1:Alt Text}](${2:URL} $3) $0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/link b/.emacs.d/snippets/markdown-mode/link new file mode 100644 index 0000000..2b96f56 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/link @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Link +# contributor: Peng Deng +# key: link +# -- +[${1:Link Text}](${2:URL} $3) $0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/ordered-list b/.emacs.d/snippets/markdown-mode/ordered-list new file mode 100644 index 0000000..beb0f28 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/ordered-list @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Ordered List +# contributor: Peng Deng +# key: ol +# -- +${1:1}. ${2:Text} +${1:$(number-to-string (1+ (string-to-number yas-text)))}. $0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/plus b/.emacs.d/snippets/markdown-mode/plus new file mode 100644 index 0000000..ebcaab1 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/plus @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Unordered List + +# contributor: Peng Deng +# key: + +# -- ++ ${1:Text} ++$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/rimg b/.emacs.d/snippets/markdown-mode/rimg new file mode 100644 index 0000000..85046e4 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/rimg @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Referenced Image +# contributor: Peng Deng +# key: rimg +# -- +![${1:Alt Text}][$2] $0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/rlb b/.emacs.d/snippets/markdown-mode/rlb new file mode 100644 index 0000000..6aabc4a --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/rlb @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Reference Label +# contributor: Peng Deng +# key: rlb +# -- +[${1:Reference}]: ${2:URL} $3 +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/rlink b/.emacs.d/snippets/markdown-mode/rlink new file mode 100644 index 0000000..cce2e1a --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/rlink @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Reference Link +# contributor: Peng Deng +# key: rlink +# -- +[${1:Link Text}][$2] $0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/strong-emphasis b/.emacs.d/snippets/markdown-mode/strong-emphasis new file mode 100644 index 0000000..bcef3f9 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/strong-emphasis @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Strong emphasis +# contributor: Peng Deng +# key: __ +# -- +**${1:Text}** $0 \ No newline at end of file diff --git a/.emacs.d/snippets/markdown-mode/utf8 b/.emacs.d/snippets/markdown-mode/utf8 new file mode 100644 index 0000000..0b39d88 --- /dev/null +++ b/.emacs.d/snippets/markdown-mode/utf8 @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: UTF-8 encoding +# key: utf8 +# contributor: Thiago Perrotta +# -- + +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/prog-mode/.yas-setup.el b/.emacs.d/snippets/prog-mode/.yas-setup.el index 486ae47..7d6127d 100644 --- a/.emacs.d/snippets/prog-mode/.yas-setup.el +++ b/.emacs.d/snippets/prog-mode/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) ;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -29,8 +30,9 @@ (yas-s-trim comment-start)) (defun yas-trimmed-comment-end () - "This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty. -Otherwise the reversed output of function `yas-trimmed-comment-start' is returned." + "This function returns `comment-end' trimmed by whitespaces if +`comment-end' is not empty. Otherwise the reversed output of +function `yas-trimmed-comment-start' is returned." (if (eq (length comment-end) 0) (yas-string-reverse (yas-trimmed-comment-start)) (yas-s-trim comment-end))) diff --git a/.emacs.d/snippets/python-mode.statnett/.yas-setup.el b/.emacs.d/snippets/python-mode.statnett/.yas-setup.el index 8b29215..e9145ef 100644 --- a/.emacs.d/snippets/python-mode.statnett/.yas-setup.el +++ b/.emacs.d/snippets/python-mode.statnett/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) (defvar yas-text) diff --git a/.emacs.d/snippets/python-mode/.yas-setup.el b/.emacs.d/snippets/python-mode/.yas-setup.el index 8b29215..e9145ef 100644 --- a/.emacs.d/snippets/python-mode/.yas-setup.el +++ b/.emacs.d/snippets/python-mode/.yas-setup.el @@ -1,3 +1,4 @@ +;;; -*- lexical-binding: t -*- (require 'yasnippet) (defvar yas-text) diff --git a/.emacs.d/snippets/yasnippet-snippets.el b/.emacs.d/snippets/yasnippet-snippets.el new file mode 100644 index 0000000..958f6da --- /dev/null +++ b/.emacs.d/snippets/yasnippet-snippets.el @@ -0,0 +1,77 @@ +;;; yasnippet-snippets.el --- Collection of yasnippet snippets -*- lexical-binding: t -*- + +;; Copyright (C) 2017 Andrea Crotti + +;; Author: Andrea Crotti +;; Keywords: snippets +;; Version: 1.0 +;; Package-Requires: ((yasnippet "0.8.0")) +;; Keywords: convenience, snippets +;; Homepage: https://github.com/AndreaCrotti/yasnippet-snippets + +;;; Commentary: + +;; Official snippet collection for the yasnippet package. + +;;; License: + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Code: + +(require 'yasnippet) + +(defconst yasnippet-snippets-dir + (expand-file-name + "snippets" + (file-name-directory + ;; Copied from ‘f-this-file’ from f.el. + (cond + (load-in-progress load-file-name) + ((and (boundp 'byte-compile-current-file) byte-compile-current-file) + byte-compile-current-file) + (:else (buffer-file-name)))))) + +;;;###autoload +(defun yasnippet-snippets-initialize () + "Load the `yasnippet-snippets' snippets directory." + ;; NOTE: we add the symbol `yasnippet-snippets-dir' rather than its + ;; value, so that yasnippet will automatically find the directory + ;; after this package is updated (i.e., moves directory). + (unless (member 'yasnippet-snippets-dir yas-snippet-dirs) + (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t) + (yas--load-snippet-dirs))) + +(defgroup yasnippet-snippets nil + "Options for yasnippet setups. + +This is useful for customizing options declared in +“.yas-setup.el” files. For example, you could declare a +customizable variable used for a snippet expansion. + +See Info node `(elisp)Customization Types'." + :group 'yasnippet) + +(defun yasnippet-snippets--no-indent () + "Set `yas-indent-line' to nil." + (set (make-local-variable 'yas-indent-line) nil)) + +;;;###autoload +(eval-after-load 'yasnippet + '(yasnippet-snippets-initialize)) + + +(provide 'yasnippet-snippets) + +;;; yasnippet-snippets.el ends here -- cgit v1.3