diff options
| author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-24 17:56:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-24 17:56:00 -0400 |
| commit | 8a82a11eff3d4254eb9e312e669d52806663bc6b (patch) | |
| tree | 52c78a7e03c9e5573863e1b60a106a112ecc3f93 | |
| parent | PR #11: Merge `rfc/9/improve-editor` branch to `stable` branch (diff) | |
| parent | Add installation instructions to the README (diff) | |
| download | mmosmacs-8a82a11eff3d4254eb9e312e669d52806663bc6b.tar.gz mmosmacs-8a82a11eff3d4254eb9e312e669d52806663bc6b.tar.bz2 mmosmacs-8a82a11eff3d4254eb9e312e669d52806663bc6b.zip | |
PR #13: Merge `rfc/8/exwm` branch to `stable` branch
| -rw-r--r-- | README.md | 24 | ||||
| -rw-r--r-- | emacs.desktop | 4 | ||||
| -rw-r--r-- | init.el | 23 | ||||
| -rw-r--r-- | xinitrc | 18 |
4 files changed, 69 insertions, 0 deletions
| @@ -6,6 +6,30 @@ core of my computing experience, and is designed to be a | |||
| 6 | jack-of-all-trades just like me. | 6 | jack-of-all-trades just like me. |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | ## Installation | ||
| 10 | |||
| 11 | First, clone this repository into your `~/.emacs.d` directory. | ||
| 12 | ```bash | ||
| 13 | cd | ||
| 14 | git clone https://github.com/MountainMan1312/MMOSMacs.git .emacs.d | ||
| 15 | ``` | ||
| 16 | |||
| 17 | Next create symlinks to the `xinitrc` and `emacs.desktop` files so X | ||
| 18 | knows what to do: | ||
| 19 | ```bash | ||
| 20 | # Backup your `.xinitrc` file if you feel like it. | ||
| 21 | # Replace `.xinitrc.old` with whatever you want to name the backup. | ||
| 22 | mv .xinitrc .xinitrc.old | ||
| 23 | |||
| 24 | # Symlink your `.xinitrc` file | ||
| 25 | ln -s .emacs.d/xinitrc .xinitrc | ||
| 26 | |||
| 27 | # Symlink `emacs.desktop` to add MMOSMacs as an entry to your Display | ||
| 28 | # Manager / login screen. | ||
| 29 | sudo ln -s .emacs.d/emacs.desktop /usr/share/xsessions/emacs.desktop | ||
| 30 | ``` | ||
| 31 | |||
| 32 | |||
| 9 | ## Plans | 33 | ## Plans |
| 10 | 34 | ||
| 11 | - Non-literate configuration | 35 | - Non-literate configuration |
diff --git a/emacs.desktop b/emacs.desktop new file mode 100644 index 0000000..22bdae1 --- /dev/null +++ b/emacs.desktop | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | Name=MMOSMacs | ||
| 3 | Exec=emacs | ||
| 4 | Type=Application | ||
| @@ -59,6 +59,29 @@ | |||
| 59 | 59 | ||
| 60 | 60 | ||
| 61 | ;; --------------------------------------------------------------------- | 61 | ;; --------------------------------------------------------------------- |
| 62 | ;;; Window Manager / Desktop Environment | ||
| 63 | ;; ------------------------------------- | ||
| 64 | ;; Emacs is capable of functioning as the entire desktop environment. | ||
| 65 | ;; --------------------------------------------------------------------- | ||
| 66 | |||
| 67 | ;; --------------------------------- | ||
| 68 | ;; Emacs X Window Manager (EXWM) | ||
| 69 | ;; ----------------------------- | ||
| 70 | ;; EXWM is a fully-featured | ||
| 71 | ;; X Window Manager. | ||
| 72 | ;; --------------------------------- | ||
| 73 | |||
| 74 | (use-package exwm | ||
| 75 | :straight t | ||
| 76 | :config | ||
| 77 | (require 'exwm-config) | ||
| 78 | (setq exwm-workspace-number 1) | ||
| 79 | (exwm-enable)) | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | ;; --------------------------------------------------------------------- | ||
| 62 | ;;; Text Editor | 85 | ;;; Text Editor |
| 63 | ;; ------------ | 86 | ;; ------------ |
| 64 | ;; These tweaks are meant to make the text editor more convenient. | 87 | ;; These tweaks are meant to make the text editor more convenient. |
| @@ -0,0 +1,18 @@ | |||
| 1 | # .xinitrc for MMOSMacs | ||
| 2 | # This script is executed when running the `startx` command. | ||
| 3 | |||
| 4 | |||
| 5 | # Make Java applications aware this is a non-reparenting window manager | ||
| 6 | export _JAVA_AWT_WM_NONREPARENTING=1 | ||
| 7 | |||
| 8 | |||
| 9 | # Set default cursor | ||
| 10 | xsetroot -cursor_name left_ptr | ||
| 11 | |||
| 12 | |||
| 13 | # Set keyboard repeat rate | ||
| 14 | xset r rate 200 60 | ||
| 15 | |||
| 16 | |||
| 17 | # Start emacs | ||
| 18 | exec dbus-launch --exit-with-session emacs | ||