7b8902a36a
I've been wanting to use in-emacs terminal buffers instead of Alacritty as an EXWM window for a while. In light of the recent EXWM bugs that cause overlapping X-windows occasionally I've finally had it! This commit introduces a new configuration file for multi-term related settings. Primarily this does the following: * Introduce a new `C-x t` keybinding which launches a terminal if none is running, or prompts the user to select one of the existing ones. * Remap key bindings in term-mode for quick access to features I want. * Add a `C-c C-r` key binding in term-mode to quickly rename terminal buffers into something sensible. Hopefully this will play nice with the ivy-based selector from the first point mentioned here. I'll see how it goes!
45 lines
1.3 KiB
EmacsLisp
45 lines
1.3 KiB
EmacsLisp
;;; init.el --- Package bootstrapping. -*- lexical-binding: t; -*-
|
|
|
|
;; Packages are installed via Nix configuration, this file only
|
|
;; initialises the newly loaded packages.
|
|
|
|
(require 'package)
|
|
(require 'seq)
|
|
|
|
(package-initialize)
|
|
|
|
;; Configure a few basics before moving on to package-specific initialisation.
|
|
(setq custom-file (concat user-emacs-directory "init/custom.el"))
|
|
(load custom-file)
|
|
|
|
(defvar home-dir)
|
|
(setq home-dir (expand-file-name "~"))
|
|
|
|
;; Seed RNG
|
|
(random t)
|
|
|
|
;; Add 'init' folder that contains other settings to load.
|
|
(add-to-list 'load-path (concat user-emacs-directory "init"))
|
|
|
|
;; Load configuration that makes use of installed packages:
|
|
|
|
;; Emacs will automatically initialise all installed packages.
|
|
;; After initialisation, proceed to load configuration that requires packages:
|
|
(defun load-other-settings ()
|
|
(mapc 'require '(nixos
|
|
look-and-feel
|
|
functions
|
|
settings
|
|
modes
|
|
bindings
|
|
term-setup
|
|
eshell-setup
|
|
haskell-setup
|
|
rust-setup
|
|
lisp-setup
|
|
)))
|
|
|
|
(add-hook 'after-init-hook 'load-other-settings)
|
|
(put 'narrow-to-region 'disabled nil)
|
|
(edit-server-start)
|
|
(put 'upcase-region 'disabled nil)
|