summaryrefslogtreecommitdiff
path: root/itches/emacs/language-support.org
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2019-07-11 18:10:53 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2019-07-11 18:10:53 +0200
commit8cfe656fbb312398244d6f0e820d4f179db3cfc7 (patch)
tree31102175eb71b82eece64ba62cf494e1014b0fc9 /itches/emacs/language-support.org
parent66d44f9dbb1f6a6e8af5d51677ee39c496c46caa (diff)
downloadmemory-leaks-8cfe656fbb312398244d6f0e820d4f179db3cfc7.tar.xz
Move some things around
Diffstat (limited to 'itches/emacs/language-support.org')
-rw-r--r--itches/emacs/language-support.org59
1 files changed, 59 insertions, 0 deletions
diff --git a/itches/emacs/language-support.org b/itches/emacs/language-support.org
new file mode 100644
index 0000000..8d007d3
--- /dev/null
+++ b/itches/emacs/language-support.org
@@ -0,0 +1,59 @@
+* Python
+** Fix builtin/keyword fontification for Python 3
+E.g. =print= became a builtin.
+*** TODO add fontification tests
+*** TODO have dedicated font-lock styles for Python 2, 3 and "mixed"
+Default to "mixed" (rely on tests to ensure user-visible change).
+**** TODO create font-lock styles
+**** TODO create variable to choose style
+Users could customize it or set it wiht directory-local variables.
+*** TODO add heuristic to pick the "right" style
+** Fontify f-strings
+E.g. =f'an {expression} that should be highlighted'=.
+
+
+* Shell scripts
+** Fix builtin/keyword fontification
+- =continue= and =break= are /builtins/.
+** Fontify variables within strings
+E.g. ="an ${expression} that should be highlighted"=.
+** Do not highlight single-quoted command substitutions
+E.g. ='this $(call) should not be highlighted'=.
+** Fix indentation on continuation lines
+#+BEGIN_SRC shell
+# cf
+# - electric-indent-post-self-insert-function
+# - indent-according-to-mode
+# - indent-line-function => smie-indent-line
+# - smie-indent-functions
+# - smie-indent-exps
+# => calls smie-backward-sexp, which does not skip over ${foo}
+foobar \
+ indentis4
+foo_bar \
+ indentisstill4
+${foo}bar \
+ indentisfoobar
+#+END_SRC
+
+
+* Makefile
+** Recognize [[http://austingroupbugs.net/view.php?id=330][POSIX "immediate-expansion"]] operator ~::=~
+
+
+* Assembly
+** =C-o= inserts a tab despite =indent-tabs-mode= being nil
+This seems to come from the mode setting =fill-prefix=. The mode also
+does not adhere to the "~RET~ = smart newline, ~C-j~ = dumb linefeed"
+convention for no good reason AFAICT.
+
+
+* TeX
+** electric-pair-mode and $inline math$
+e-p-m inserts a closing $ after point, but inserts a new pair instead
+of overwriting when pressing $ again.
+** AUCTeX
+*** electric-pair-mode does not work
+**** pressing ="= on active region does not surround it with quotes even with electric-pair-mode
+TeX-insert-quote erases the region and inserts =``= instead.
+**** pressing =$= inserts a single $