shoshin
  • Member for 3 years
  • Last seen more than 1 year ago
1 answers
6 votes
2k views
org-mode: any way to automatically collapse "blocks" (e.g., BEGIN_QUOTE)?
Accepted answer
9 votes

There are in buffer settings for many things like this in org -> https://orgmode.org/manual/In_002dbuffer-settings.html For code blocks specifically there are these startup options: To hide blocks ...

View answer
3 answers
4 votes
422 views
How to move the cursor to the next instance of the text the cursor is currently on?
Accepted answer
8 votes

I think what you're looking for is isearch-forward-symbol-at-point which is bound to M-s . Here's its documentation: (isearch-forward-symbol-at-point) Do incremental search forward for a symbol found ...

View answer
1 answers
3 votes
83 views
Why won't `emacs -nw -f org-mode foo` open `foo` in `org-mode`?
Accepted answer
6 votes

I was able to do it by switching the order around emacs -nw foo -f org-mode After reading the help, if the function is a command, it is just like pressing a key command to do it. There's also the --...

View answer
3 answers
1 votes
199 views
Turn on noweb references for all org buffers
Accepted answer
3 votes

There's an example for doing just what you are asking in the Org Manual: https://orgmode.org/manual/System_002dwide-header-arguments.html#System_002dwide-header-arguments Here it is for convenience: ...

View answer
1 answers
1 votes
78 views
Regex search contains font-lock strings
Accepted answer
2 votes

You'll want to use the function buffer-substring-no-properties. In the documentation for M-x describe-function buffer-substring it says this: This function copies the text properties of that part ...

View answer
2 answers
0 votes
465 views
How to add some space to the left of the line numbers in linum-mode?
Accepted answer
2 votes

You could customize the variable linum-format to be a format string that begins with a space. The simplest would be (setq linum-format " %d") which sticks one space in front of the formatted digit. I ...

View answer
1 answers
0 votes
431 views
Display file icons in ranger inside spacemacs
Accepted answer
2 votes

Icons in Emacs are provided by the all-the-icons package. I believe that is installed in Spacemacs by default. You can run M-x all-the-icons-install-fonts to get the necessary fonts/glyphs for ...

View answer
1 answers
0 votes
422 views
Spacemacs helm-org layer is missing
Accepted answer
2 votes

If helm-org is not part of the helm layer, you can add it to your personal configuration manually. Add the package name to the dotspacemacs-additional-packages list in your .spacemacs file. If you ...

View answer
1 answers
2 votes
369 views
How to use `backspace` to navigate to the parent folder in Spacemacs?
Accepted answer
2 votes

This is the default behavior if using the Ivy completion engine. Assuming you are using Helm (the default for Spacemacs) for your completion engine, there is a command helm-find-files-up-one-level ...

View answer
1 answers
0 votes
548 views
How to prevent "the function ‘->’ is not known to be defined." warning
Accepted answer
2 votes

-> is a Lisp macro in `dash.el'. Macros don't follow the usual rules for function definition which is likely why you're getting this error. You might be able to do it by explicitly requiring dash in ...

View answer
2 answers
3 votes
787 views
How to configure git and magit to stream line making pull requests?
Accepted answer
2 votes

With magit, I would start the process with M-x magit-status or however you prefer to get there. In the status buffer press b to bring up the branching menu, and then press c to create a new branch. ...

View answer
2 answers
1 votes
523 views
Spacemacs redefine main prefix `M-m`
2 votes

There are settings for the leader key in your .spacemacs file. I have remapped mine to Page Up, (which is represented as <prior> by emacs). Here's what I have in my .spacemacs: ;; The leader ...

View answer
3 answers
1 votes
210 views
Function that does `M-x replace-regexp` or `M-x occur` with a fixed pattern and replacement strings
2 votes

One way this can be accomplished is by using dired. Here's an article from Xah Lee on how to use dired to find and replace across files: http://ergoemacs.org/emacs/find_replace_inter.html In short, ...

View answer
1 answers
2 votes
77 views
How to show the beginning and end of a long function name in `which-key`?
1 votes

There's a customizable variable you can set: which-key-max-description-length Setting it to nil will prevent it from truncating. From the describe-variable output: Documentation: Truncate ...

View answer
1 answers
1 votes
121 views
Is there a way I can open emacs (spacemacs) recent files from rofi?
Accepted answer
1 votes

The list of recent files in spacemacs is kept in ~/.emacs.d/.cache/recentf. Its just a plain text file, but it contains elisp and can be parsed as a lisp file. You could use the shell to parse out ...

View answer
2 answers
0 votes
134 views
How do I toggle between current frame size and maximized frame
1 votes

There's a function called toggle-frame-fullscreen which looks to be bound to f11 key by default. You can use C-h f to call describe-function and put toggle-frame-fullscreen at the prompt. It will ...

View answer
2 answers
3 votes
419 views
How to select a rotating Hydra option?
1 votes

I posted on your Spacemacs issue as well, but thought I'd share my answer here too. The issue here is that the hydra you are viewing when pressing C-o is not the Ivy hydra. It is a custom hydra set ...

View answer
1 answers
0 votes
198 views
How can I get files and links to open correctly in emacs?
Accepted answer
1 votes

Check out your ~/.spacemacs.env file. The newest version of Spacemacs has a function in the .spacemacs initialization file to load environment variables. (defun dotspacemacs/user-env () "...

View answer
1 answers
0 votes
2k views
org-babel-execute-src-block: No org-babel-execute function for R!
Accepted answer
1 votes

I was able to reproduce the behavior with your .emacs file. I found one syntax error that I thought might be the issue: (custom-set-variables '(haskell-tags-on-save t) that line is missing a ...

View answer
1 answers
0 votes
164 views
What is a default shell on emacs 26.1 on Windows 10
Accepted answer
1 votes

According to this FAQ in the Emacs manual, the default shell on Windows is the standard cmd.exe. It seems like the path to that executable is usually C:\Windows\System32\cmd.exe

View answer
1 answers
0 votes
151 views
cursor color depending on insert or overwrite mode
0 votes

Here's a quick example of a naive way you could accomplish this: (defun toggle-cursor-color () (if (equalp "deep pink" (face-background 'cursor)) (set-cursor-color "Dark Turquoise") (set-...

View answer
1 answers
0 votes
177 views
Spacemacs: shortcut to jump from opened orgmode file to Neotree pane
0 votes

I was able to find Neotree layer documentation in the develop branch documentation site for Spacemacs. The shortcut to jump to the neotree window is SPC 0. To select the NeoTree window, press SPC 0....

View answer
2 answers
1 votes
2k views
Org mode bullets
Accepted answer
0 votes

I found a thread that has some information about improving the smoothness of fonts on Windows. It sounds like you want to look for a TrueType font. I use Source Code Pro and it looks great on Mac and ...

View answer
2 answers
0 votes
255 views
How to run a command in Emacs (rvm-use) against all current and future buffers?
Accepted answer
0 votes

Spacemacs has a variable for this in the Ruby layer. I assume you already have the layer enabled since you are working in Ruby buffers. The documentation for Ruby version management is here: https://...

View answer