aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--emacs/.emacs.d/init.org29
1 files changed, 16 insertions, 13 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 2d416c5..0cb730d 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1,5 +1,6 @@
#+TITLE: Tom-Emacs Interface
#+STARTUP: content
+#+MACRO: key @@html:<kbd>$1</kbd>@@@@ascii:`$1'@@
This is my personal Emacs configuration. The name was inspired by
"Ghost in the Shell 2: Man-Machine Interface" and Ryan Rix's "Complete
@@ -338,12 +339,13 @@ Computing Environment".
*** Suspend
- The =C-z= key in a terminal suspends the current application to
- the background and lets you do other things on the command line
- without having to fully close the application. In GUI Emacs this
- minimizes the current frame. I have no place for it to minimize to
- (no task bar or anything), so this just freezes my frame. To
- prevent this from happening I unbind the =C-z= key.
+ The {{{key(C-z)}}} key in a terminal suspends the current
+ application to the background and lets you do other things on the
+ command line without having to fully close the application. In GUI
+ Emacs this minimizes the current frame. I have no place for it to
+ minimize to (no task bar or anything), so this just freezes my
+ frame. To prevent this from happening I unbind the {{{key(C-z)}}}
+ key.
#+BEGIN_SRC emacs-lisp
(global-unset-key (kbd "C-z"))
@@ -444,7 +446,7 @@ Computing Environment".
* Counsel
Counsel is a group of functions that use Ivy to specialize on
- certain built-in commands, such as M-x.
+ certain built-in commands, such as {{{key(M-x)}}}.
Since I enable Counsel mode immediately, there's no point in leaving
it to be autoloaded. Requiring it keeps the byte-compiler happy.
@@ -468,7 +470,8 @@ Computing Environment".
#+END_SRC
Don't show that counsel is enabled in the mode-line. It's enabled
- globally and I'll notice whenever I press M-x for example.
+ globally and I'll notice whenever I press {{{key(M-x)}}} for
+ example.
#+BEGIN_SRC emacs-lisp
(diminish 'counsel-mode)
@@ -642,17 +645,17 @@ Computing Environment".
** Electric indent mode
- By default `electric-indent-mode' is enabled globally, but I prefer
+ By default ~electric-indent-mode~ is enabled globally, but I prefer
to enable it locally where I need it.
#+BEGIN_SRC emacs-lisp
(electric-indent-mode -1)
#+END_SRC
- Since Emacs 24 `electric-indent-mode' switches the behavior of the
- C-j and RET keys. I prefer the original situation because my
- muscle-memory still remembers to use C-j for newline-and-indent
- behaviour.
+ Since Emacs 24 ~electric-indent-mode~ switches the behavior of the
+ {{{key(C-j)}}} and {{{key(RET)}}} keys. I prefer the original
+ situation because my muscle-memory still remembers to use
+ {{{key(C-j)}}} for newline-and-indent behaviour.
#+BEGIN_SRC emacs-lisp
(defun oni:switch-newline-keys ()