Minor formatting modifications
This commit is contained in:
parent
0dcb665f03
commit
dbdb3e3f11
130
config.org
130
config.org
@ -802,9 +802,9 @@ operations.
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Code completion
|
*** Code completion
|
||||||
[[https://company-mode.github.io/][company]] comlpetes anything in the buffer
|
[[https://company-mode.github.io/][company]] comlpetes anything in the buffer
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package company
|
(use-package company
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook (after-init . global-company-mode)
|
:hook (after-init . global-company-mode)
|
||||||
@ -821,7 +821,7 @@ operations.
|
|||||||
:ensure t
|
:ensure t
|
||||||
:after company
|
:after company
|
||||||
:hook (company-mode . company-quickhelp-mode)))
|
:hook (company-mode . company-quickhelp-mode)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Snippets
|
** Snippets
|
||||||
Powered by Yasnippet
|
Powered by Yasnippet
|
||||||
|
|
||||||
@ -877,9 +877,9 @@ use =ga= and =gA= to hint letters n stuff.
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
** org-mode
|
** org-mode
|
||||||
*** Master org package
|
*** Master org package
|
||||||
Keep org-mode up to date straight from the cow's utters.
|
Keep org-mode up to date straight from the cow's utters.
|
||||||
If the manual is not on your computer, it's [[https://orgmode.org/manual/][here]].
|
If the manual is not on your computer, it's [[https://orgmode.org/manual/][here]].
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package org
|
(use-package org
|
||||||
:ensure t
|
:ensure t
|
||||||
:ensure org-plus-contrib
|
:ensure org-plus-contrib
|
||||||
@ -902,7 +902,7 @@ use =ga= and =gA= to hint letters n stuff.
|
|||||||
:ensure nil
|
:ensure nil
|
||||||
:after org
|
:after org
|
||||||
:custom (org-contacts-files '("~/Documents/org/contacts.org")))
|
:custom (org-contacts-files '("~/Documents/org/contacts.org")))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Pretty bullets
|
*** Pretty bullets
|
||||||
Make bullets look choice
|
Make bullets look choice
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -913,15 +913,15 @@ use =ga= and =gA= to hint letters n stuff.
|
|||||||
*** org-download
|
*** org-download
|
||||||
For [[https://github.com/abo-abo/org-download][drag n drop]] images n stuff
|
For [[https://github.com/abo-abo/org-download][drag n drop]] images n stuff
|
||||||
# #+BEGIN_SRC emacs-lisp
|
# #+BEGIN_SRC emacs-lisp
|
||||||
(use-package org-download
|
# (use-package org-download
|
||||||
:after org
|
# :after org
|
||||||
:pin melpa
|
# :pin melpa
|
||||||
:ensure t
|
# :ensure t
|
||||||
:hook (dired-mode . org-download-enable))
|
# :hook (dired-mode . org-download-enable))
|
||||||
#+END_SRC
|
# #+END_SRC
|
||||||
** Startup splash screen
|
** Startup splash screen
|
||||||
Show a custom buffer on startup
|
Show a custom buffer on startup
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package dashboard
|
(use-package dashboard
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
@ -933,7 +933,7 @@ For [[https://github.com/abo-abo/org-download][drag n drop]] images n stuff
|
|||||||
(projects . 5)
|
(projects . 5)
|
||||||
(bookmarks . 5)
|
(bookmarks . 5)
|
||||||
(registers . 5))))
|
(registers . 5))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Tags
|
** Tags
|
||||||
make tag files.
|
make tag files.
|
||||||
@ -995,103 +995,9 @@ Irony handles enhanced C / C++ operations powered by clang
|
|||||||
:config
|
:config
|
||||||
(add-to-list 'company-backends 'company-irony))
|
(add-to-list 'company-backends 'company-irony))
|
||||||
#+END_SRC
|
#+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
|
*** Python
|
||||||
**** jedi for autocompletion sources n stuff
|
**** jedi for autocompletion sources n stuff
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package company-jedi
|
(use-package company-jedi
|
||||||
:ensure t
|
:ensure t
|
||||||
:defer t
|
:defer t
|
||||||
@ -1104,7 +1010,7 @@ Enable a powershell mode
|
|||||||
(setq jedi:environment-virtualenv
|
(setq jedi:environment-virtualenv
|
||||||
(append python-environment-virtualenv
|
(append python-environment-virtualenv
|
||||||
'("--python" "/usr/bin/python3"))))
|
'("--python" "/usr/bin/python3"))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Web Development
|
*** Web Development
|
||||||
**** Web mode
|
**** Web mode
|
||||||
Should give everything you need for a web-dev major mode, except for
|
Should give everything you need for a web-dev major mode, except for
|
||||||
|
Loading…
Reference in New Issue
Block a user