A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [commands]

Commands are functions that can be invoked interactively either through `M-x` or by a key binding.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
52 views

Remapping global keybindings to a prefix command

The following works: (define-prefix-command 'my-map) (global-set-key (kbd "C-@") 'my-map) ;; MacOS (global-set-key (kbd "C-SPC") 'my-map) ;; Windows 10 The following does not: (global-set-key [...
2
votes
0answers
220 views

Trace Evil-mode commands

At the moment, I only know one way to determine which Emacs functions are called by any given Evil command (e.g. a sequence of key bindings in the Normal state): read the Evil source code. Is there a ...
1
vote
0answers
30 views

Memory Profiler reporting error upon profiler-report

After calling profiler-report after doing profiler-start and selecting mem I get the following error: maphash: Wrong type argument: number-or-marker-p, unbound Any Idea why?
1
vote
0answers
166 views

Error in using “helm-projectile-find-file”

This is my config in init.el: (require 'helm-projectile) (projectile-global-mode) (setq projectile-completion-system 'helm) (helm-projectile-on) (setq projectile-indexing-method 'alien) (setq ...
0
votes
0answers
9 views

How to remove all console.logs() from the buffer and also how to comment all console.logs from the buffer?

When I do a regex-replace and replace with the empty string, the console.logs() are removed but the empty lines still remain. How would I remove these empty lines? Furthermore, how would I replace all ...
0
votes
0answers
43 views

defun to replace regex pattern with original pattern plus new line

I have written the following lisp code to search for a regex pattern and append new line to it: (defun readmode () (interactive) (goto-char 1) (while (search-forward-regex "\(</[a-z]+>\)" ...
0
votes
2answers
253 views

how to define an evil-operator to move forward/backward a text-object?

I am trying to define a function that moves to the begin/end of current text-object. First - I define an operator: (evil-define-operator evil-forward-text-object (beg end type) "move to end of ...
0
votes
0answers
38 views

dig.el broken when invoking with type? How to fix?

Running emacs 26.1 on window using bind tools x64 9.13. When I M-x dig heise.de MX it seems the question gets mangled: ; <<>> DiG 9.13.0 <<>> heise.de MX ;; global options: +...
0
votes
0answers
143 views

How to change the command for comment toggling

spacemacs with Evil uses gcc to toggle whether a line is commented or not. I'd like to change it to ,cc. How should I go about this in my .spacemacs file?
-1
votes
1answer
79 views

Emacs Lisp Error when called as command but works well when called as function

https://github.com/Cheatinikle/Spacemacs-settings/blob/master/emacs-package/preetest-mode.el This is my full source code, and 'just-utils package is also included in the repository. The problem is, ...