summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2018-04-21 21:15:47 -0400
committerAmin Bandali <amin@aminb.org>2018-04-21 21:15:47 -0400
commit421132e97dc7a4275f294962e53fae9d2bfbd262 (patch)
treeba205f0688f8422bde5aaaf56ec9fccdfdb19851 /emacs
parent056eba24a096c9e6ea355936063d5f60741265e3 (diff)
downloadconfigs-421132e97dc7a4275f294962e53fae9d2bfbd262.tar.gz
configs-421132e97dc7a4275f294962e53fae9d2bfbd262.tar.xz
configs-421132e97dc7a4275f294962e53fae9d2bfbd262.zip
[emacs] add core packages
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.org119
1 files changed, 111 insertions, 8 deletions
diff --git a/emacs/init.org b/emacs/init.org
index 388a4e2..cda34f3 100644
--- a/emacs/init.org
+++ b/emacs/init.org
@@ -3,7 +3,10 @@
* Intro
-TODO: description
+This org file is tangled to [[./init.el][init.el]] and constitutes my Emacs
+configuration. =straight.el=, =use-package=, =general.el=, =exwm=,
+=org-mode=, and =magit= are some of the awesome packages powering my
+Emacs setup.
* Contents :toc_1:noexport:
@@ -11,7 +14,6 @@ TODO: description
- [[#header][Header]]
- [[#initial-setup][Initial setup]]
- [[#core][Core]]
-- [[#config][Config]]
- [[#footer][Footer]]
* Header
@@ -286,6 +288,13 @@ yanking (pasting) what I'd originally intended to.
(setq message-log-max 10000)
#+end_src
+*** Minibuffer
+
+#+begin_src emacs-lisp
+(setq enable-recursive-minibuffers t
+ resize-mini-windows t)
+#+end_src
+
*** Lazy-person-friendly yes/no prompts
Lazy people would prefer to type fewer keystrokes, especially for yes
@@ -325,7 +334,7 @@ visiting a file). Borrowed from Emacs Prelude.
"%b"))))
#+end_src
-** Backups
+*** Backups
Emacs' default backup settings aren't that great. Let's use more
sensible options. See documentation for the ~make-backup-file~
@@ -336,12 +345,45 @@ variable.
version-control t)
#+end_src
-* Config
-:PROPERTIES:
-:CUSTOM_ID: config
-:END:
+** Packages
+
+The packages in this section are absolutely essential to my everyday
+workflow, and they play key roles in how I do my computing. They
+immensely enhance the Emacs experience for me; both using Emacs, and
+customizing it.
+
+*** [[https://github.com/noctuid/general.el][general.el]]
+
+#+begin_quote
+More convenient key definitions in emacs
+#+end_quote
+
+More like /the most/ convenient key definitions in Emacs.
+
+#+begin_src emacs-lisp
+(use-package general
+ :demand t
+ :config)
+#+end_src
-** Org
+*** [[https://github.com/ch11ng/exwm][exwm]] (window manager)
+
+#+begin_src emacs-lisp
+(use-package exwm
+ :config
+ (require 'exwm-config)
+ (exwm-config-default))
+#+end_src
+
+*** [[https://orgmode.org/][Org mode]]
+
+#+begin_quote
+Org mode is for keeping notes, maintaining TODO lists, planning
+projects, and authoring documents with a fast and effective plain-text
+system.
+#+end_quote
+
+In short, my favourite way of life.
#+begin_src emacs-lisp
(setq org-src-tab-acts-natively t
@@ -349,6 +391,67 @@ variable.
org-edit-src-content-indentation 0)
#+end_src
+*** [[https://magit.vc/][Magit]]
+
+#+begin_quote
+It's Magit! A Git porcelain inside Emacs.
+#+end_quote
+
+Not just how I do git, but /the/ way to do git.
+
+#+begin_src emacs-lisp
+(use-package magit
+ :general
+ ("s-g" 'magit-status))
+#+end_src
+
+*** [[https://github.com/abo-abo/swiper][Ivy]] (and friends)
+
+#+begin_quote
+Ivy - a generic completion frontend for Emacs, Swiper - isearch with
+an overview, and more. Oh, man!
+#+end_quote
+
+There's no way I could top that, so I won't attempt to.
+
+**** Ivy
+
+#+begin_src emacs-lisp
+(use-package ivy
+ :general
+ (ivy-minibuffer-map
+ [escape] 'keyboard-escape-quit
+ "C-j" 'ivy-next-line
+ "C-k" 'ivy-previous-line
+ [S-up] 'ivy-previous-history-element
+ [S-down] 'ivy-next-history-element
+ "DEL" 'ivy-backward-delete-char)
+ :config
+ (ivy-mode 1))
+#+end_src
+
+**** Swiper
+
+#+begin_src emacs-lisp
+(use-package swiper
+ :general ("C-s" 'swiper))
+#+end_src
+
+**** Counsel
+
+#+begin_src emacs-lisp
+(use-package counsel
+ :general
+ ("M-x" 'counsel-M-x
+ "C-x C-f" 'counsel-find-file
+ "s-r" 'counsel-recentf)
+ (imap minibuffer-local-map
+ "C-r" 'counsel-minibuffer-history)
+ :config
+ (counsel-mode 1)
+ (defalias 'locate #'counsel-locate))
+#+end_src
+
* Footer
:PROPERTIES:
:CUSTOM_ID: footer