Updated emacs-d and added Remtrail command to vimrc

This commit is contained in:
hellerve
2015-06-15 16:10:45 +02:00
parent d6da2b169d
commit 23636108a1
64 changed files with 3571 additions and 21 deletions

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: elixir.do
# key: do
# binding: M-[
# --
do
$0
end

View File

@@ -0,0 +1,34 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: elisp.filetemplate
# key: doc
# --
;;; -*- lexical-binding: t -*-
;;; ${1:`(f-base (buffer-file-name))`}.el --- ${2:This is an Emacs Lisp file with Emacs Lisp code.}
;; Copyright (C) `(format-time-string "%Y")` `(ohai/user-full-name)`
;; Author: `(ohai/user-full-name)` <`(ohai/user-email)`>
;; 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 <http://www.gnu.org/licenses/>.
;;; Commentary:
;; ${3:Hello world!}
;;; Code:
$0
(provide '$1)
;;; $1.el ends here

View File

@@ -0,0 +1 @@
js-mode

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: flow.importType
# key: impt
# binding: direct-keybinding
# --
import type { ${1:Type} } from "${2:module}";$0

View File

@@ -0,0 +1,18 @@
# -*- mode: snippet -*-
# name: html.document
# key: doc
# --
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>$1</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/screen.css">
</head>
<body>
$0
</body>
</html>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: commonjs.require
# key: req
# --
var ${3:${1:$(s-lower-camel-case (file-name-nondirectory yas/text))}} = require("${1:module}")$2;$0

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: es6.import
# key: imp
# binding: direct-keybinding
# --
import ${3:${1:$(s-lower-camel-case (file-name-nondirectory yas/text))}} from "${1:module}";$0

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: js.exportedfunction
# key: xf
# --
function $1($2) {$0};
module.exports.$1 = $1;

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: js.exportedvar
# key: xv
# --
var $1 = module.exports.$1 = $0;

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: js.function
# key: fn
# --
function($1) {$0}

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: org.header
# key: doc
# --
#+TITLE: $1
#+AUTHOR: Bodil Stokke
#+EMAIL: bodil@bodil.org
$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: ps.eff
# key: eff
# --
Eff (${2:${1:$(lower-camel-case yas-text)}} :: ${1:DOM} | e)

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: ps.foreign
# key: ffi
# --
foreign import ${1:unsafePerformIO} """
function $1($3) {
$0
}""" :: $2

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: ps.module
# key: mod
# --
module ${1:`(purescript-module-name-from-current-buffer-file)`} where
$0

View File

@@ -0,0 +1 @@
html-mode