-
Notifications
You must be signed in to change notification settings - Fork 1
/
packages.el
156 lines (153 loc) · 4.5 KB
/
packages.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
;; Source packages from MELPA
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(when (< emacs-major-version 27) (package-initialize))
(when (version< emacs-version "26.3")
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
;; Initialise `use-package.el' and auto-install missing packages
(if (fboundp 'use-package)
(eval-when-compile (require 'use-package))
;; Hack to facilitate non-interactive installation
(progn (defmacro use-package (name &rest args)
`(push (quote ,name) package-selected-packages))
(use-package use-package)
(add-hook 'after-init-hook 'package-refresh-contents)))
;; Start MELPIN’
(use-package adoc-mode)
(use-package aggressive-indent
:config
(add-hook 'emacs-lisp-mode-hook #'aggressive-indent-mode))
(use-package apache-mode)
(use-package bison-mode)
(use-package bnf-mode)
(use-package bnfc)
(use-package brainfuck-mode)
(use-package cmake-mode)
(use-package cc-mode
:config
(setq c-file-style "K&R")
(setq c-basic-offset 4)
(setq c-tab-always-indent t)
(setq c-syntactic-indentation nil))
(use-package cperl-mode
:config
(setq tab-width 8)
(setq cperl-indent-level 8)
(setq cperl-extra-newline-before-brace nil)
(setq cperl-merge-trailing-else nil))
(use-package coffee-mode)
(use-package csv-mode)
(use-package cuda-mode)
(use-package dashboard)
(use-package deadgrep)
(use-package dna-mode)
(use-package dockerfile-mode)
(use-package dotenv-mode)
(use-package dyalog-mode)
(use-package editorconfig)
(use-package enh-ruby-mode)
(use-package fic-mode)
(use-package form-feed)
(use-package forth-mode)
(use-package glsl-mode)
(use-package go-mode)
(use-package haskell-mode)
(use-package haskell-tab-indent)
(use-package ini-mode)
(use-package js2-mode
:config (setq js2-highlight-level 3)
(setq js2-include-node-externs t)
(setq js2-strict-trailing-comma-warning nil)
(setq js2-strict-cond-assign-warning nil)
(setq js2-strict-inconsistent-return-warning nil)
(setq indent-line-function 'insert-tab)
(setq indent-tabs-mode t)
(setq tab-width 4)
:interpreter ("chakra" "d8" "js" "node" "qjs" "rhino" "v8" "v8-shell")
:mode (("\\.es[0-9]?\\'\\|\\.[cmsp]?js\\'\\|\\.eslintrc\\'" . js2-mode)
("\\.jsx\\'" . js2-jsx-mode)))
(use-package less-css-mode)
(use-package lfe-mode)
(use-package markdown-mode)
(use-package mocha
:config
(defcustom mocha-test-directory-regexp
"/\\(test\\|spec\\)s?/?$"
"Regular expression for identifying test directories."
:type 'string
:group 'mocha)
(defconst mocha-bdd-globals
'("after"
"afterEach"
"before"
"beforeEach"
"context"
"describe"
"it"
"specify")
"Functions globalised by Mocha's `BDD' interface.")
(defconst mocha-bdd-globals
'("after"
"afterEach"
"before"
"beforeEach"
"context"
"describe"
"it"
"specify")
"Functions globalised by Mocha's `BDD' interface.")
(defconst mocha-tdd-globals
'("setup"
"suite"
"suiteSetup"
"suiteTeardown"
"test"
"teardown")
"Functions globalised by Mocha's `TDD' interface.")
(defconst mocha-qunit-globals
'("after"
"afterEach"
"before"
"beforeEach"
"test"
"suite")
"Functions globalised by Mocha's `QUnit' interface.")
(add-hook 'js2-init-hook
(lambda ()
(when (string-match mocha-test-directory-regexp
(file-name-directory (buffer-file-name)))
(setq js2-additional-externs mocha-bdd-globals)))))
(use-package move-text
:bind ("C-<up>" . move-text-up)
:bind ("C-<down>" . move-text-down))
(use-package multiple-cursors)
(use-package nasm-mode)
(use-package newlisp-mode)
(use-package ninja-mode)
(use-package nroff-mode)
(use-package plisp-mode
:config
(setq plisp-syntax-highlighting-p t))
(use-package pov-mode)
(use-package powershell)
(use-package rust-mode)
(use-package scad-mode)
(use-package sed-mode)
(use-package sgml-mode
:bind ([tab] . self-insert-command)
:config (setq tab-width 4)
(setq indent-tabs-mode t)
(set (make-local-variable 'sgml-basic-offset) 4))
(use-package shift-number)
(use-package slime)
(use-package sml-mode)
(use-package spice-mode)
(use-package ssh-config-mode)
(use-package toml-mode)
(use-package typescript-mode
:mode "\\.tsx\\'"
:interpreter ("deno" "tsc" "ts-node"))
(use-package vimrc-mode)
(use-package wavefront-obj-mode)
(use-package xterm-color)
(use-package yaml-mode)