Compare commits
No commits in common. "6660451dfffd46a1eac67ea97af476d9a2e04f14" and "6e7649683811dfa88fbab807c56ad0e450c73394" have entirely different histories.
6660451dff
...
6e76496838
@ -49,10 +49,9 @@ declarations for color schemes."
|
|||||||
(add-to-list 'default-frame-alist '(cursor-color . "white"))
|
(add-to-list 'default-frame-alist '(cursor-color . "white"))
|
||||||
(add-to-list 'default-frame-alist '(fullscreen . maximized))
|
(add-to-list 'default-frame-alist '(fullscreen . maximized))
|
||||||
;; see also https://emacs.stackexchange.com/questions/7228/nice-tty-window-borders-in-24-4
|
;; see also https://emacs.stackexchange.com/questions/7228/nice-tty-window-borders-in-24-4
|
||||||
(unless (display-graphic-p)
|
|
||||||
(let ((display-table (or standard-display-table (make-display-table))))
|
(let ((display-table (or standard-display-table (make-display-table))))
|
||||||
(set-display-table-slot display-table 'vertical-border (make-glyph-code ?│))
|
(set-display-table-slot display-table 'vertical-border (make-glyph-code ?│))
|
||||||
(setq standard-display-table display-table))))
|
(setq standard-display-table display-table)))
|
||||||
(defun mir/graphical-setup ()
|
(defun mir/graphical-setup ()
|
||||||
"Commands to run at the beginning of init when on a graphical display.
|
"Commands to run at the beginning of init when on a graphical display.
|
||||||
This prevents errors in termux and speeds up init when editing from the
|
This prevents errors in termux and speeds up init when editing from the
|
||||||
@ -84,12 +83,17 @@ console."
|
|||||||
(set-face-attribute 'variable-pitch nil :height (+ font-height 10))))
|
(set-face-attribute 'variable-pitch nil :height (+ font-height 10))))
|
||||||
|
|
||||||
(defun toggle-ja-input ()
|
(defun toggle-ja-input ()
|
||||||
"Switch between english and japanese. Not broken."
|
"Switch between english and japanese. Broken."
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (eq current-input-method 'japanese)
|
(if (eq current-input-method 'japanese)
|
||||||
(setq current-input-method 'japanese-ascii)
|
(setq current-input-method 'japanese-ascii)
|
||||||
(setq current-input-method 'japanese)))
|
(setq current-input-method 'japanese)))
|
||||||
|
|
||||||
|
(defun mir/general-config ()
|
||||||
|
"A batch of commands to run immediately after loading the `general' package.
|
||||||
|
Made solely to reduce lines in the init file."
|
||||||
|
(require 'mir-keybinds))
|
||||||
|
|
||||||
(defun turn-off-line-numbers ()
|
(defun turn-off-line-numbers ()
|
||||||
"A tiny wrapper around `display-line-numbers-mode' or `linum'.
|
"A tiny wrapper around `display-line-numbers-mode' or `linum'.
|
||||||
For use in hooks."
|
For use in hooks."
|
||||||
@ -115,6 +119,19 @@ For instance:
|
|||||||
- Maybe SLIME too."
|
- Maybe SLIME too."
|
||||||
(turn-off-line-numbers))
|
(turn-off-line-numbers))
|
||||||
|
|
||||||
|
;; for vterm
|
||||||
|
(defun update-pwd (path)
|
||||||
|
"Sync Emacs' working PATH with the shell's.
|
||||||
|
For use with `vterm'."
|
||||||
|
(setq default-directory path))
|
||||||
|
|
||||||
|
;; reference: https://stackoverflow.com/questions/4114577/how-do-i-define-an-emacs-lisp-function-to-spawn-a-shell-buffer-with-a-particular
|
||||||
|
(defun spawn-shell (name)
|
||||||
|
"Invoke shell test"
|
||||||
|
(interactive "MName of shell buffer to create: ")
|
||||||
|
(pop-to-buffer (get-buffer-create (generate-new-buffer-name name)))
|
||||||
|
(shell (current-buffer)))
|
||||||
|
|
||||||
;; This one line cost me over an hour of frustration...
|
;; This one line cost me over an hour of frustration...
|
||||||
(provide 'mir-defuns)
|
(provide 'mir-defuns)
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
;; -----------------------------------------------------------------------------
|
;; -----------------------------------------------------------------------------
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
(elpaca-wait)
|
||||||
;; (use-package no-littering) ;a bad start, and we need more
|
;; (use-package no-littering) ;a bad start, and we need more
|
||||||
|
|
||||||
(use-package compat)
|
(use-package compat)
|
||||||
@ -18,7 +19,7 @@
|
|||||||
(use-package general
|
(use-package general
|
||||||
:demand t
|
:demand t
|
||||||
:custom (default-input-method "japanese")
|
:custom (default-input-method "japanese")
|
||||||
:config (require 'mir-keybinds))
|
:config (mir/general-config))
|
||||||
(elpaca-wait)
|
(elpaca-wait)
|
||||||
(use-package gcmh
|
(use-package gcmh
|
||||||
:diminish
|
:diminish
|
||||||
|
Loading…
Reference in New Issue
Block a user