diff --git a/index.html b/index.html index 4a48e7b..41ab56f 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + mos emacs howtos @@ -201,67 +201,68 @@

mos emacs howtos

Table of Contents

-
-

1. mo-emacs-config

+
+

1. mo-emacs-config

Ok, so this is my emacs config wiki

-
-

1.1. Keybindings/Prefix keys

+
+

1.1. Keybindings/Prefix keys

I use a us keyboard layout, so C-= is nicely reachable and a @@ -276,8 +277,8 @@

1.1. Keybindings/Prefi

-
-

1.1.1. Some of the bindings

+
+

1.1.1. Some of the bindings

(global-set-key (kbd "C-= d") 'find-name-dired)
@@ -292,8 +293,8 @@ 

1.1.1. Some of the bin

-
-

1.2. recent-files

+
+

1.2. recent-files

;; recent files
@@ -304,8 +305,8 @@ 

1.2. recent-files

-
-

1.3. emacs server

+
+

1.3. emacs server

start a server if there isn't already one running: @@ -319,8 +320,8 @@

1.3. emacs server

-
-

1.4. my multiple cursors shortcuts

+
+

1.4. my multiple cursors shortcuts

I think MCs are cool but I don't use them much. I neither pretend @@ -347,12 +348,12 @@

1.4. my multiple curso

-
-

1.5. Ansi-Term

+
+

1.5. Ansi-Term

-
-

1.5.1. pasting

+
+

1.5.1. pasting

There is a function called term-paste, but it is bound to S-insert @@ -372,8 +373,8 @@

1.5.1. pasting

-
-

1.5.2. tmacs

+
+

1.5.2. tmacs

To conveniently open files from terminal even on remote machines, I @@ -395,8 +396,8 @@

1.5.2. tmacs

-
-

1.5.3. emacsclient

+
+

1.5.3. emacsclient

Add to your ~/.bashrc: @@ -416,12 +417,12 @@

1.5.3. emacsclient

-
-

1.5.4. troubleshooting

+
+

1.5.4. troubleshooting

    -
  1. slow scrolling (emacs 26.1 has this problem)
    +
  2. slow scrolling (emacs 26.1 has this problem)

    In older emacs versions ansi-term was allegedly very slow clearing the @@ -441,7 +442,7 @@

    1.5.4. troubleshooting

  3. -
  4. terminal resizing (emacs 26.1 has this problem)
    +
  5. terminal resizing (emacs 26.1 has this problem)

    Resizing the terminal in which emacs runs doesn't inform inferior @@ -458,20 +459,20 @@

    1.5.4. troubleshooting

-
-

1.6. flymake

+
+

1.6. flymake

-
-

1.6.1. json (new version)

+
+

1.6.1. json (new version)

-
-

1.6.2. toml

+
+

1.6.2. toml

(load "~/.emacs.d/tomlcheck.el")
@@ -486,7 +487,7 @@ 

1.6.2. toml

    -
  1. tomlcheck.el
    +
  2. tomlcheck.el
    ;;; flymake-tomlcheck.el --- TOML linter with tomlcheck  -*- lexical-binding: t; -*-
    @@ -580,8 +581,8 @@ 

    1.6.2. toml

-
-

1.6.3. yaml

+
+

1.6.3. yaml

(load "~/.emacs.d/flymake-yamllint.el")
@@ -597,8 +598,8 @@ 

1.6.3. yaml

-
-

1.6.4. python

+
+

1.6.4. python

see https://github.com/mokrates/flymaker @@ -607,15 +608,15 @@

1.6.4. python

-
-

1.7. ide stuff, languages

+
+

1.7. ide stuff, languages

-For flymaker, see 1.6 +For flymaker, see 1.6

-
-

1.7.1. python

+
+

1.7.1. python

;;;;;;;; python
@@ -636,8 +637,8 @@ 

1.7.1. python

-
-

1.7.2. Golang

+
+

1.7.2. Golang

;; golang
@@ -648,8 +649,8 @@ 

1.7.2. Golang

-
-

1.8. show git branch in modeline

+
+

1.8. show git branch in modeline

(defun mo-term-git-mode--get-branch ()
@@ -671,25 +672,50 @@ 

1.8. show git branch i

-
-

1.9. TODO ement.el (matrix client)

+
+

1.9. TODO ement.el (matrix client)

-
-

2. HOWTOs

+
+

2. HOWTOs

-
-

2.1. Fonts

+
+

2.1. Fonts

-
-

2.1.1. how to let emacs find a font for you

+
+

2.1.1. default font

+emacs::fonts +

+ +

+From the emacs docs: +

+
+

+Add a line to your init file, modifying the variable +`default-frame-alist' to specify the `font' parameter (*note Frame Parameters::), like this: +

+ +

+(add-to-list 'default-frame-alist + '(font . "DejaVu Sans Mono-10")) +

+
+
+
+ + +
+

2.1.2. how to let emacs find a font for you

+
+

customize-face expects from you that you know the name and all parameters of a font. When I wasn't using GTK I found this hard. I found this way: @@ -713,9 +739,9 @@

2.1.1. how to let emac

-
-

2.1.2. troubleshooting

-
+
+

2.1.3. troubleshooting

+

Sometimes emacs loses the fonts you define. That seems to happen with incompatible themes which redefine them. deinstall those themes and redefine your fonts. @@ -732,8 +758,8 @@

2.1.2. troubleshooting

-
-

2.2. How to build an input method

+
+

2.2. How to build an input method

I built one. See here: quail classic german @@ -758,7 +784,7 @@

Footnotes:

Author: mokrates

-

Created: 2023-12-19 Di 00:57

+

Created: 2023-12-19 Di 01:42

Validate