Updated emacs-d and added Remtrail command to vimrc
This commit is contained in:
8
.emacs.d/snippets/elixir-mode/elixir.do
Normal file
8
.emacs.d/snippets/elixir-mode/elixir.do
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: elixir.do
|
||||
# key: do
|
||||
# binding: M-[
|
||||
# --
|
||||
do
|
||||
$0
|
||||
end
|
34
.emacs.d/snippets/emacs-lisp-mode/elisp.filetemplate
Normal file
34
.emacs.d/snippets/emacs-lisp-mode/elisp.filetemplate
Normal 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
|
1
.emacs.d/snippets/flow-mode/.yas-parents
Normal file
1
.emacs.d/snippets/flow-mode/.yas-parents
Normal file
@@ -0,0 +1 @@
|
||||
js-mode
|
6
.emacs.d/snippets/flow-mode/flow.importType
Normal file
6
.emacs.d/snippets/flow-mode/flow.importType
Normal 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
|
18
.emacs.d/snippets/html-mode/html.document
Normal file
18
.emacs.d/snippets/html-mode/html.document
Normal 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>
|
5
.emacs.d/snippets/js-mode/commonjs.require
Normal file
5
.emacs.d/snippets/js-mode/commonjs.require
Normal 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
|
6
.emacs.d/snippets/js-mode/es6.import
Normal file
6
.emacs.d/snippets/js-mode/es6.import
Normal 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
|
6
.emacs.d/snippets/js-mode/js.exportedfunction
Normal file
6
.emacs.d/snippets/js-mode/js.exportedfunction
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: js.exportedfunction
|
||||
# key: xf
|
||||
# --
|
||||
function $1($2) {$0};
|
||||
module.exports.$1 = $1;
|
5
.emacs.d/snippets/js-mode/js.exportedvar
Normal file
5
.emacs.d/snippets/js-mode/js.exportedvar
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: js.exportedvar
|
||||
# key: xv
|
||||
# --
|
||||
var $1 = module.exports.$1 = $0;
|
5
.emacs.d/snippets/js-mode/js.function
Normal file
5
.emacs.d/snippets/js-mode/js.function
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: js.function
|
||||
# key: fn
|
||||
# --
|
||||
function($1) {$0}
|
8
.emacs.d/snippets/org-mode/org.header
Normal file
8
.emacs.d/snippets/org-mode/org.header
Normal 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
|
5
.emacs.d/snippets/purescript-mode/ps.eff
Normal file
5
.emacs.d/snippets/purescript-mode/ps.eff
Normal 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)
|
8
.emacs.d/snippets/purescript-mode/ps.foreign
Normal file
8
.emacs.d/snippets/purescript-mode/ps.foreign
Normal 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
|
6
.emacs.d/snippets/purescript-mode/ps.module
Normal file
6
.emacs.d/snippets/purescript-mode/ps.module
Normal 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
|
1
.emacs.d/snippets/web-mode/.yas-parents
Normal file
1
.emacs.d/snippets/web-mode/.yas-parents
Normal file
@@ -0,0 +1 @@
|
||||
html-mode
|
Reference in New Issue
Block a user