Skip to main content

Questions tagged [major-mode]

The mode that determines the editing behavior of Emacs while that buffer is current. The mode line normally shows the name of the current major mode, in parentheses.

1 vote
0 answers
32 views

My code associates a .crt file to the x509-dwim function with: (add-to-list 'auto-mode-alist '("\\.crt\\'" . x509-dwim)) When I open a .crt X.509 certificate file, the association works ...
PRouleau's user avatar
  • 924
1 vote
0 answers
56 views

So someone at my company years ago decided it was a good idea to create a company internal package format, say "yuppie" for yunified package. And that can randomly be tgz or zip archives. ...
Susanne Oberhauser's user avatar
0 votes
1 answer
264 views

I am working on a major mode using treesitter as my parser. It's been pretty intuitive but I ran into an issue. When trying to use multiple languages, you have to specify ranges using nodes in the AST ...
Marc Johnson's user avatar
0 votes
2 answers
441 views

[Edit: I should specify that there are many keybindings in the major mode that overide the desired keybinding. They all start with a whereas I would like a to do something else. I already thought ...
userrandrand's user avatar
0 votes
1 answer
33 views

I have following code which is supposed to clear existing content in a buffer and write new one. (defun display-file-dir (path) (text-mode) (if buffer-read-only (read-only-mode)) (erase-...
Suren Shrestha's user avatar
2 votes
1 answer
192 views

I've installed mermaid-mode by using package-install and MPLA but for some reason, it's not showing up when I type it after M-x. (I get Match required). I'm running Doom Emacs. Any clue why this ...
shintuku's user avatar
  • 131
0 votes
1 answer
56 views

Question I am live-coding. I would like to be able to change the major mode to and from org-mode without un-hiding any of the text that org-mode has hidden. I would switch to a code mode whenever I ...
Jeffrey Benjamin Brown's user avatar
1 vote
2 answers
4k views

My Emacs (29.1) comes with the some tree-sitter modes: c-ts-mode go-ts-mode js-ts-mode ... I downloaded the compiled .dll and they work out of box. However, there are some languages that tree-sitter ...
Lai Yu-Hsuan's user avatar

15 30 50 per page
1
2 3 4 5
20