aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-04-24 17:56:00 -0400
committerGitHub <noreply@github.com>2023-04-24 17:56:00 -0400
commit8a82a11eff3d4254eb9e312e669d52806663bc6b (patch)
tree52c78a7e03c9e5573863e1b60a106a112ecc3f93
parentPR #11: Merge `rfc/9/improve-editor` branch to `stable` branch (diff)
parentAdd installation instructions to the README (diff)
downloadmmosmacs-8a82a11eff3d4254eb9e312e669d52806663bc6b.tar.gz
mmosmacs-8a82a11eff3d4254eb9e312e669d52806663bc6b.tar.bz2
mmosmacs-8a82a11eff3d4254eb9e312e669d52806663bc6b.zip
PR #13: Merge `rfc/8/exwm` branch to `stable` branch
-rw-r--r--README.md24
-rw-r--r--emacs.desktop4
-rw-r--r--init.el23
-rw-r--r--xinitrc18
4 files changed, 69 insertions, 0 deletions
diff --git a/README.md b/README.md
index e1d81d0..86c24d1 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,30 @@ core of my computing experience, and is designed to be a
6jack-of-all-trades just like me. 6jack-of-all-trades just like me.
7 7
8 8
9## Installation
10
11First, clone this repository into your `~/.emacs.d` directory.
12```bash
13cd
14git clone https://github.com/MountainMan1312/MMOSMacs.git .emacs.d
15```
16
17Next create symlinks to the `xinitrc` and `emacs.desktop` files so X
18knows 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.
22mv .xinitrc .xinitrc.old
23
24# Symlink your `.xinitrc` file
25ln -s .emacs.d/xinitrc .xinitrc
26
27# Symlink `emacs.desktop` to add MMOSMacs as an entry to your Display
28# Manager / login screen.
29sudo 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]
2Name=MMOSMacs
3Exec=emacs
4Type=Application
diff --git a/init.el b/init.el
index 6b6ae0b..12cc2f1 100644
--- a/init.el
+++ b/init.el
@@ -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.
diff --git a/xinitrc b/xinitrc
new file mode 100644
index 0000000..795714b
--- /dev/null
+++ b/xinitrc
@@ -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
6export _JAVA_AWT_WM_NONREPARENTING=1
7
8
9# Set default cursor
10xsetroot -cursor_name left_ptr
11
12
13# Set keyboard repeat rate
14xset r rate 200 60
15
16
17# Start emacs
18exec dbus-launch --exit-with-session emacs