Browse Source

make console usage of emacs better

master
Alison Watson 8 months ago
parent
commit
c1708ee6a1
5 changed files with 23 additions and 25 deletions
  1. +1
    -1
      applications/alacritty.yml
  2. +2
    -1
      emacs/data.el
  3. +0
    -5
      emacs/early-init.el
  4. +13
    -18
      emacs/init.el
  5. +7
    -0
      fish/emacs-nw

+ 1
- 1
applications/alacritty.yml View File

@@ -19,7 +19,7 @@ scrolling:

font:
normal:
family: Iosevka
family: Courier Prime Code
style: Regular
size: 12.0
offset:


+ 2
- 1
emacs/data.el View File

@@ -31,7 +31,8 @@
"Sets up `org-mode'."
(setq-local indent-tabs-mode nil
standard-indent 2
tab-width 2))
tab-width 2)
(define-key evil-normal-state-map (kbd "TAB") 'org-cycle))

(defun agw-cc-mode ()
"Sets up `c-mode' and `c++-mode'."


+ 0
- 5
emacs/early-init.el View File

@@ -51,9 +51,4 @@

(set-fontset-font t '(#x2e80 . #x9fff) "Noto Sans CJK JP")

(setq agw-mode-line-family
(if (eq system-type 'windows-nt)
"Noto Mono"
"Iosevka"))

;; EOF

+ 13
- 18
emacs/init.el View File

@@ -70,24 +70,19 @@

;; theme
(use-package base16-theme
:ensure t
:config
(load-theme 'base16-atelier-cave t)
(dolist (face '(mode-line
mode-line-buffer-id
mode-line-emphasis
mode-line-highlight
mode-line-inactive
header-line
header-line-highlight))
(set-face-attribute face nil
:height 120
:family agw-mode-line-family
:weight 'normal
:width 'normal))
(set-face-attribute 'mode-line nil
:background "#0a0a0a"
:foreground "#92ebf0"))
:ensure t)

(use-package inkpot-theme
:ensure t)

(load-theme
(if (display-graphic-p)
'base16-atelier-cave
'inkpot)
t nil)
(set-face-attribute 'mode-line nil
:background "#0a0a0a"
:foreground "#92ebf0")

;; major modes
(use-package powershell


+ 7
- 0
fish/emacs-nw View File

@@ -0,0 +1,7 @@
#!/usr/bin/env fish

function emacs-nw
env TERM=alacritty-direct ~/.local/bin/emacs -nw $argv
end

## EOF

Loading…
Cancel
Save