Compare commits
2 Commits
af0dd9da82
...
6192d1b7e7
Author | SHA1 | Date |
---|---|---|
Frieder Schlesier | 6192d1b7e7 | |
Frieder Schlesier | 438a8b5af3 |
|
@ -4,10 +4,9 @@ A new start in 2023, initial bootstrap with ~crafted-emacs~.
|
||||||
|
|
||||||
** Early setup
|
** Early setup
|
||||||
|
|
||||||
1. =git submodule update --init --recursive=
|
1. =git clone ~/src/emacs && cd ~/src/emacs=
|
||||||
2. create the directory links
|
2. =git submodule update --init --recursive=
|
||||||
|
3. link from your =$XDG_CONFIG_DIR=:
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
mkdir ~/.config/crafted-emacs-configdir
|
ln -s ~/src/emacs ~/.config/emacs
|
||||||
ln -s ~/.config/crafted-emacs-configdir/ ~/.config/emacs
|
|
||||||
#+end_src
|
#+end_src
|
||||||
3. adjust ~user-emacs-directory~ and ~crafted-emacs-home~ accordingly
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
(load "~/.config/crafted-emacs-configdir/crafted-emacs/modules/crafted-early-init-config")
|
(load "~/.config/emacs/crafted-emacs/modules/crafted-early-init-config")
|
||||||
|
|
10
init.el
10
init.el
|
@ -2,7 +2,7 @@
|
||||||
;; This file is generated from the .org-file with the same name. If you want to edit the
|
;; This file is generated from the .org-file with the same name. If you want to edit the
|
||||||
;; configuration, DO NOT edit this .el-file, edit .org, instead.
|
;; configuration, DO NOT edit this .el-file, edit .org, instead.
|
||||||
|
|
||||||
(setq user-emacs-directory "~/.config/crafted-emacs-configdir/")
|
(setq user-emacs-directory "~/.config/emacs/")
|
||||||
(setq crafted-emacs-home (expand-file-name "crafted-emacs/" user-emacs-directory))
|
(setq crafted-emacs-home (expand-file-name "crafted-emacs/" user-emacs-directory))
|
||||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
(when (and custom-file
|
(when (and custom-file
|
||||||
|
@ -32,6 +32,14 @@
|
||||||
(unless crafted-startup-inhibit-splash
|
(unless crafted-startup-inhibit-splash
|
||||||
(setq initial-buffer-choice #'crafted-startup-screen))
|
(setq initial-buffer-choice #'crafted-startup-screen))
|
||||||
|
|
||||||
|
(keymap-global-unset "M-#")
|
||||||
|
|
||||||
|
(define-key global-map (kbd "s-b") 'switch-to-buffer)
|
||||||
|
(define-key global-map (kbd "s-w") 'kill-current-buffer)
|
||||||
|
(define-key global-map (kbd "s-W") 'kill-buffer-and-window)
|
||||||
|
(define-key global-map (kbd "s-o") 'other-window)
|
||||||
|
(define-key global-map (kbd "C-z") nil)
|
||||||
|
|
||||||
(defvar fschl-org-file (expand-file-name "fschl-org.el" user-emacs-directory))
|
(defvar fschl-org-file (expand-file-name "fschl-org.el" user-emacs-directory))
|
||||||
(when (and fschl-org-file
|
(when (and fschl-org-file
|
||||||
(file-exists-p fschl-org-file))
|
(file-exists-p fschl-org-file))
|
||||||
|
|
14
init.org
14
init.org
|
@ -9,7 +9,7 @@
|
||||||
;; This file is generated from the .org-file with the same name. If you want to edit the
|
;; This file is generated from the .org-file with the same name. If you want to edit the
|
||||||
;; configuration, DO NOT edit this .el-file, edit .org, instead.
|
;; configuration, DO NOT edit this .el-file, edit .org, instead.
|
||||||
|
|
||||||
(setq user-emacs-directory "~/.config/crafted-emacs-configdir/")
|
(setq user-emacs-directory "~/.config/emacs/")
|
||||||
(setq crafted-emacs-home (expand-file-name "crafted-emacs/" user-emacs-directory))
|
(setq crafted-emacs-home (expand-file-name "crafted-emacs/" user-emacs-directory))
|
||||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
(when (and custom-file
|
(when (and custom-file
|
||||||
|
@ -46,6 +46,17 @@
|
||||||
(setq initial-buffer-choice #'crafted-startup-screen))
|
(setq initial-buffer-choice #'crafted-startup-screen))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Custom key remap
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(keymap-global-unset "M-#")
|
||||||
|
|
||||||
|
(define-key global-map (kbd "s-b") 'switch-to-buffer)
|
||||||
|
(define-key global-map (kbd "s-w") 'kill-current-buffer)
|
||||||
|
(define-key global-map (kbd "s-W") 'kill-buffer-and-window)
|
||||||
|
(define-key global-map (kbd "s-o") 'other-window)
|
||||||
|
(define-key global-map (kbd "C-z") nil)
|
||||||
|
#+end_src
|
||||||
** Load my custom files
|
** Load my custom files
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defvar fschl-org-file (expand-file-name "fschl-org.el" user-emacs-directory))
|
(defvar fschl-org-file (expand-file-name "fschl-org.el" user-emacs-directory))
|
||||||
|
@ -58,3 +69,4 @@
|
||||||
(file-exists-p fschl-ide-file))
|
(file-exists-p fschl-ide-file))
|
||||||
(load fschl-ide-file nil :nomessage))
|
(load fschl-ide-file nil :nomessage))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue