Move eshell, term & vterm modules to :term

This commit is contained in:
Henrik Lissner 2019-05-18 23:41:18 -04:00
parent 42ba2a22b8
commit 8c65a63b1c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
18 changed files with 41 additions and 30 deletions

View file

@ -25,9 +25,12 @@
(eval (:tools eval)) (eval (:tools eval))
(lookup (:tools lookup)) (lookup (:tools lookup))
(debugger (:tools debugger))) (debugger (:tools debugger)))
(:tools (rotate-text (:editor rotate-text))) (:tools (rotate-text (:editor rotate-text))
(vterm (:term vterm)))
(:emacs (electric-indent (:emacs electric)) (:emacs (electric-indent (:emacs electric))
(hideshow (:editor fold))) (hideshow (:editor fold))
(eshell (:term eshell))
(term (:term term)))
(:ui (doom-modeline (:ui modeline)) (:ui (doom-modeline (:ui modeline))
(fci (:ui fill-column)) (fci (:ui fill-column))
(evil-goggles (:ui ophints))) (evil-goggles (:ui ophints)))

View file

@ -59,11 +59,14 @@
;;+icons ; colorful icons for dired-mode ;;+icons ; colorful icons for dired-mode
) )
electric ; smarter, keyword-based electric-indent electric ; smarter, keyword-based electric-indent
;;eshell ; a consistent, cross-platform shell (WIP)
imenu ; an imenu sidebar and searchable code index imenu ; an imenu sidebar and searchable code index
;;term ; terminals in Emacs
vc ; version-control and Emacs, sitting in a tree vc ; version-control and Emacs, sitting in a tree
:term
;;eshell ; a consistent, cross-platform shell (WIP)
;;term ; terminals in Emacs
;;vterm ; another terminals in Emacs
:tools :tools
;;ansible ;;ansible
;;debugger ; FIXME stepping through code, to help you add bugs ;;debugger ; FIXME stepping through code, to help you add bugs
@ -89,7 +92,6 @@
;;tmux ; an API for interacting with tmux ;;tmux ; an API for interacting with tmux
;;upload ; map local to remote projects via ssh/ftp ;;upload ; map local to remote projects via ssh/ftp
;;wakatime ;;wakatime
;;vterm ; another terminals in Emacs
:lang :lang
;;agda ; types of types of types of types... ;;agda ; types of types of types of types...

View file

@ -5,6 +5,7 @@
- [[#ui][:ui]] - [[#ui][:ui]]
- [[#editor][:editor]] - [[#editor][:editor]]
- [[#emacs][:emacs]] - [[#emacs][:emacs]]
- [[#term][:term]]
- [[#tools][:tools]] - [[#tools][:tools]]
- [[#lang][:lang]] - [[#lang][:lang]]
- [[#email][:email]] - [[#email][:email]]
@ -63,11 +64,16 @@ Modules that reconfigure or augment packages or features built into Emacs.
+ dired =+ranger +icons=: + dired =+ranger +icons=:
+ electric: + electric:
+ eshell:
+ imenu: + imenu:
+ term:
+ vc: + vc:
* :term
Modules that offer terminal emulation.
+ eshell:
+ term:
+ [[file:term/vterm/README.org][vterm]]:
* :tools * :tools
Small modules that give Emacs access to external tools & services. Small modules that give Emacs access to external tools & services.
@ -93,7 +99,6 @@ Small modules that give Emacs access to external tools & services.
+ tmux: + tmux:
+ upload: + upload:
+ [[file:tools/wakatime/README.org][wakatime]]: + [[file:tools/wakatime/README.org][wakatime]]:
+ vterm:
* :lang * :lang
Modules that bring support for a language or group of languages to Emacs. Modules that bring support for a language or group of languages to Emacs.

View file

@ -1,4 +1,4 @@
;;; emacs/eshell/autoload/commands.el -*- lexical-binding: t; -*- ;;; term/eshell/autoload/commands.el -*- lexical-binding: t; -*-
;;;###autoload ;;;###autoload
(defun eshell/cd-to-project () (defun eshell/cd-to-project ()

View file

@ -1,4 +1,4 @@
;;; emacs/eshell/autoload/eshell.el -*- lexical-binding: t; -*- ;;; term/eshell/autoload/eshell.el -*- lexical-binding: t; -*-
(defvar eshell-buffer-name "*doom:eshell*") (defvar eshell-buffer-name "*doom:eshell*")

View file

@ -1,4 +1,4 @@
;;; emacs/eshell/autoload/evil.el -*- lexical-binding: t; -*- ;;; term/eshell/autoload/evil.el -*- lexical-binding: t; -*-
;;;###if (featurep! :editor evil) ;;;###if (featurep! :editor evil)
;;;###autoload ;;;###autoload
@ -10,7 +10,7 @@ changing to insert mode."
(remove-hook hook 'evil-collection-eshell-next-prompt-on-insert t) (remove-hook hook 'evil-collection-eshell-next-prompt-on-insert t)
(add-hook hook '+eshell|goto-prompt-on-insert nil t))) (add-hook hook '+eshell|goto-prompt-on-insert nil t)))
;;;###autoload (autoload '+eshell:run "emacs/eshell/autoload/evil" nil t) ;;;###autoload (autoload '+eshell:run "term/eshell/autoload/evil" nil t)
(evil-define-command +eshell:run (command bang) (evil-define-command +eshell:run (command bang)
"TODO" "TODO"
(interactive "<fsh><!>") (interactive "<fsh><!>")
@ -40,7 +40,7 @@ already there)."
(goto-char (point-max)) (goto-char (point-max))
(evil-append 1)) (evil-append 1))
;;;###autoload (autoload '+eshell/evil-change "emacs/eshell/autoload/evil" nil t) ;;;###autoload (autoload '+eshell/evil-change "term/eshell/autoload/evil" nil t)
(evil-define-operator +eshell/evil-change (beg end type register yank-handler delete-func) (evil-define-operator +eshell/evil-change (beg end type register yank-handler delete-func)
"Like `evil-change' but will not delete/copy the prompt." "Like `evil-change' but will not delete/copy the prompt."
(interactive "<R><x><y>") (interactive "<R><x><y>")
@ -50,14 +50,14 @@ already there)."
(if (eq type 'line) (point-max) (min (or end (point-max)) (point-max))) (if (eq type 'line) (point-max) (min (or end (point-max)) (point-max)))
type register yank-handler delete-func))) type register yank-handler delete-func)))
;;;###autoload (autoload '+eshell/evil-change-line "emacs/eshell/autoload/evil" nil t) ;;;###autoload (autoload '+eshell/evil-change-line "term/eshell/autoload/evil" nil t)
(evil-define-operator +eshell/evil-change-line (beg end type register yank-handler) (evil-define-operator +eshell/evil-change-line (beg end type register yank-handler)
"Change to end of line." "Change to end of line."
:motion evil-end-of-line :motion evil-end-of-line
(interactive "<R><x><y>") (interactive "<R><x><y>")
(+eshell/evil-change beg end type register yank-handler #'evil-delete-line)) (+eshell/evil-change beg end type register yank-handler #'evil-delete-line))
;;;###autoload (autoload '+eshell/evil-delete "emacs/eshell/autoload/evil" nil t) ;;;###autoload (autoload '+eshell/evil-delete "term/eshell/autoload/evil" nil t)
(evil-define-operator +eshell/evil-delete (beg end type register yank-handler) (evil-define-operator +eshell/evil-delete (beg end type register yank-handler)
"Like `evil-delete' but will not delete/copy the prompt." "Like `evil-delete' but will not delete/copy the prompt."
(interactive "<R><x><y>") (interactive "<R><x><y>")
@ -67,7 +67,7 @@ already there)."
(if (eq type 'line) (point-max) (min (or end (point-max)) (point-max))) (if (eq type 'line) (point-max) (min (or end (point-max)) (point-max)))
type register yank-handler))) type register yank-handler)))
;;;###autoload (autoload '+eshell/evil-delete-line "emacs/eshell/autoload/evil" nil t) ;;;###autoload (autoload '+eshell/evil-delete-line "term/eshell/autoload/evil" nil t)
(evil-define-operator +eshell/evil-delete-line (_beg end type register yank-handler) (evil-define-operator +eshell/evil-delete-line (_beg end type register yank-handler)
"Change to end of line." "Change to end of line."
:motion nil :motion nil

View file

@ -1,4 +1,4 @@
;;; emacs/eshell/autoload/prompts.el -*- lexical-binding: t; -*- ;;; term/eshell/autoload/prompts.el -*- lexical-binding: t; -*-
;;;###autoload ;;;###autoload
(defface +eshell-prompt-pwd '((t :inherit font-lock-constant-face)) (defface +eshell-prompt-pwd '((t :inherit font-lock-constant-face))

View file

@ -1,4 +1,4 @@
;;; emacs/eshell/autoload/settings.el -*- lexical-binding: t; -*- ;;; term/eshell/autoload/settings.el -*- lexical-binding: t; -*-
;;;###autodef ;;;###autodef
(defun set-eshell-alias! (&rest aliases) (defun set-eshell-alias! (&rest aliases)

View file

@ -1,4 +1,4 @@
;;; emacs/eshell/config.el -*- lexical-binding: t; -*- ;;; term/eshell/config.el -*- lexical-binding: t; -*-
;; see: ;; see:
;; + `+eshell/open': open in current buffer ;; + `+eshell/open': open in current buffer

View file

@ -1,5 +1,5 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; emacs/eshell/packages.el ;;; term/eshell/packages.el
(package! eshell-up) (package! eshell-up)
(package! eshell-z) (package! eshell-z)

View file

@ -1,4 +1,4 @@
;;; emacs/term/autoload.el -*- lexical-binding: t; -*- ;;; term/term/autoload.el -*- lexical-binding: t; -*-
;;;###autoload ;;;###autoload
(defun +term/open (arg) (defun +term/open (arg)

View file

@ -1,8 +1,8 @@
;;; emacs/term/config.el -*- lexical-binding: t; -*- ;;; term/term/config.el -*- lexical-binding: t; -*-
;; `multi-term' ;;;###package multi-term
(setq multi-term-dedicated-window-height 20 (setq multi-term-dedicated-window-height 20
multi-term-switch-after-close 'PREVIOUS) multi-term-switch-after-close 'PREVIOUS)
;; `term' (built-in) ;;;###package term
(add-hook 'term-mode-hook #'doom|mark-buffer-as-real) (add-hook 'term-mode-hook #'doom|mark-buffer-as-real)

View file

@ -1,4 +1,5 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; emacs/term/packages.el ;;; term/term/packages.el
(package! term :built-in t)
(package! multi-term) (package! multi-term)

View file

@ -1,4 +1,4 @@
#+TITLE: tools/vterm #+TITLE: term/vterm
#+DATE: January 16, 2019 #+DATE: January 16, 2019
#+SINCE: 2.1 #+SINCE: 2.1
#+STARTUP: inlineimages #+STARTUP: inlineimages

View file

@ -1,4 +1,4 @@
;;; tools/vterm/autoload.el -*- lexical-binding: t; -*- ;;; term/vterm/autoload.el -*- lexical-binding: t; -*-
;;;###autoload ;;;###autoload
(defun +vterm/open (arg) (defun +vterm/open (arg)

View file

@ -1,4 +1,4 @@
;;; tools/vterm/config.el -*- lexical-binding: t; -*- ;;; term/vterm/config.el -*- lexical-binding: t; -*-
(def-package! vterm (def-package! vterm
:when (fboundp 'module-load) :when (fboundp 'module-load)

View file

@ -1,4 +1,4 @@
;;; tools/vterm/doctor.el -*- lexical-binding: t; -*- ;;; term/vterm/doctor.el -*- lexical-binding: t; -*-
(unless (executable-find "vterm-ctrl") (unless (executable-find "vterm-ctrl")
(warn! "Couldn't find libvterm. Vterm module won't compile")) (warn! "Couldn't find libvterm. Vterm module won't compile"))

View file

@ -1,4 +1,4 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; tools/vterm/packages.el ;;; term/vterm/packages.el
(package! vterm) (package! vterm)