Minor formatting modifications
This commit is contained in:
parent
0dcb665f03
commit
dbdb3e3f11
106
config.org
106
config.org
@ -913,12 +913,12 @@ use =ga= and =gA= to hint letters n stuff.
|
||||
*** org-download
|
||||
For [[https://github.com/abo-abo/org-download][drag n drop]] images n stuff
|
||||
# #+BEGIN_SRC emacs-lisp
|
||||
(use-package org-download
|
||||
:after org
|
||||
:pin melpa
|
||||
:ensure t
|
||||
:hook (dired-mode . org-download-enable))
|
||||
#+END_SRC
|
||||
# (use-package org-download
|
||||
# :after org
|
||||
# :pin melpa
|
||||
# :ensure t
|
||||
# :hook (dired-mode . org-download-enable))
|
||||
# #+END_SRC
|
||||
** Startup splash screen
|
||||
Show a custom buffer on startup
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
@ -995,100 +995,6 @@ Irony handles enhanced C / C++ operations powered by clang
|
||||
:config
|
||||
(add-to-list 'company-backends 'company-irony))
|
||||
#+END_SRC
|
||||
**** Snippets
|
||||
Enable yasnippet on c / c++ modes
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
#+END_SRC
|
||||
*** Clojure
|
||||
Now that I'm going to be trying out this live-coding thing, I'm going
|
||||
to need some clojure modes for working with [[http://overtone.github.io/docs.html][overtone]]. [[http://cider.readthedocs.io/en/latest/][cider]] provides
|
||||
REPL integration with emacs and company highlighting. Obviously,
|
||||
[[https://github.com/clojure-emacs/clojure-mode/][clojure-mode]] just gives clojure highlighting n stuff. See also: the
|
||||
clojure wiki page for [[http://clojure-doc.org/articles/tutorials/emacs.html][integrating with emacs]].
|
||||
|
||||
Essentially, you need to add the following to =~/.lein/profiles.clj=:
|
||||
#+BEGIN_SRC clojure
|
||||
{:repl {:plugins [[cider/cider-nrepl "0.17.0"]]}}
|
||||
#+END_SRC
|
||||
Note that you need to keep this updated to the current =cider-nrepl=
|
||||
version. You can =lein search cider-nrepl= in a terminal for this.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; Needed for cider I guess
|
||||
(use-package sesman
|
||||
:ensure t)
|
||||
(use-package clojure-mode
|
||||
:pin melpa
|
||||
:ensure t
|
||||
:defer t)
|
||||
(use-package cider
|
||||
:pin melpa
|
||||
:after (clojure-mode company)
|
||||
:ensure t
|
||||
:defer t
|
||||
:hook ((cider-repl-mode . company-mode)
|
||||
(cider-mode . company-mode)
|
||||
(cider-repl-mode . cider-company-enable-fuzzy-completion)
|
||||
(cider-mode . cider-company-enable-fuzzy-completion)))
|
||||
(use-package clojure-snippets
|
||||
:after (clojure-mode yasnippet)
|
||||
:ensure t
|
||||
:defer t
|
||||
:config
|
||||
(add-to-list 'clojure-mode-hook 'yas-minor-mode))
|
||||
#+END_SRC
|
||||
*** Elixir
|
||||
[[https://alchemist.readthedocs.io/en/latest/][Alchemist]] provides various elixir extensions.
|
||||
|
||||
[[https://github.com/emacs-evil/evil-collection/blob/master/evil-collection-alchemist.el][Evil Collection]] bindings are avaliable
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package elixir-mode
|
||||
:defer t
|
||||
:ensure t)
|
||||
|
||||
(use-package alchemist
|
||||
:defer t
|
||||
:ensure t
|
||||
:after elixir-mode
|
||||
:init
|
||||
(add-to-list 'elixir-mode-hook 'alchemist-mode)
|
||||
(add-to-list 'elixir-mode-hook 'company-mode))
|
||||
#+END_SRC
|
||||
*** Javascript
|
||||
**** Better editing mode
|
||||
[[https://github.com/mooz/js2-mode][js2-mode]] for help editing java files. Keybindings in [[https://github.com/emacs-evil/evil-collection/blob/master/evil-collection-js2-mode.el][this file]].
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package js2-mode
|
||||
:ensure t
|
||||
:defer t
|
||||
:hook (js2-mode . yas-minor-mode)
|
||||
:init
|
||||
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
|
||||
(add-to-list 'interpreter-mode-alist '("node" . js2-mode)))
|
||||
#+END_SRC
|
||||
**** Completion
|
||||
Use [[http://ternjs.net/doc/manual.html][tern]] to help complete javascript snippets.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package company-tern
|
||||
:ensure t
|
||||
:defer t
|
||||
:init
|
||||
(defun wiz-js2-company-mode-hook ()
|
||||
(add-to-list 'company-backends 'company-tern))
|
||||
(add-hook 'js2-mode-hook 'wiz-js2-company-mode-hook))
|
||||
#+END_SRC
|
||||
*** Markdown
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package markdown-mode
|
||||
:ensure t)
|
||||
#+END_SRC
|
||||
*** Powershell
|
||||
Enable a powershell mode
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package powershell
|
||||
:pin melpa
|
||||
:ensure t)
|
||||
#+END_SRC
|
||||
*** Python
|
||||
**** jedi for autocompletion sources n stuff
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
Loading…
Reference in New Issue
Block a user