Questions tagged [navigation]

Use the navigation tag for questions about moving around: to different places within a file/buffer (i.e., beginning, end, across paragraphs and code blocks); from one window to another (i.e., changing which window you are working in, and which files/buffers are displayed in each window).

21 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
86 views

Working around preprocessor blocks

I am trying to navigate a C project that has lots of preprocessor directives like this: #ifdef SOME_COMPILE_TIME_VARIABLE for ( idx=0; idx<FOO; idx++ ) { #else for ( idx=0; idx<BAR; idx+...
3
votes
3answers
939 views

Jump to location in org-mode while properly unfolding headings

I'd like to find a way to jump to a location in an org-mode file while automatically unfolding only the heading at the location I'm jumping to and all its parent headings (but not any sibling headings)...
2
votes
0answers
33 views

How to move by defun without moving up a level?

I am attempting to navigate methods in a file. Typically these are javascript or python files, which have a classes at the "top level", which in turn have methods nested within those ...
2
votes
0answers
126 views

Navigating in an nXML buffer

I'm editing an XML with nXML-mode. The file represents a document and has internal links of the form: Follow <linktag docref="foo">this link</linktag> to see <anchortag docref="foo">...
2
votes
0answers
385 views

How to go to the beginning of a word/sexp?

When the point is not at the beginning of a word/sexp, backward-word / backward-sexp places the cursor at the beginning of that word/sexp. If the point is already at the beginning of a word/sexp, this ...
1
vote
0answers
36 views

Idempotent `beginning-of-defun`

How to obtain/implement a beginning-of-defun drop-in replacement that is idempotent? i.e., if I already am at the beginning of a defun, beginning-of-defun should do nothing, rather than jumping to ...
1
vote
0answers
28 views

Navigation ignores comment blocks in (La)TeX mode

I sometimes leave large blocks of comments in LaTeX source code: Text text text text. % Comments comments comments comments. % Six lines of comments. % More comments. % Separate comment block. % ...
1
vote
0answers
214 views

Emacs doesn't understand where the windows are?

This has occurred several times now. I will have an Emacs session (24.5.1, OSX UI version installed via homebrew) running for a while when suddenly it no longer seems to understand how to navigate ...
1
vote
0answers
223 views

forward-to-word functionality with subword-mode

I frequently type camelCase variable names, and enjoy the features subword-mode offers. This, this and this reiterate the fact that the community desires vim-like functionality where they can choose ...
0
votes
0answers
29 views

widening/narrowing with org-goto

org-goto (as well as orgnav, helm-org-rifle) strictly respects narrowing. is there a way to have it disregard it, making it possible to jump to places in the file outside current narrowing? or is ...
0
votes
0answers
21 views

How to make imenu jump/preview new location when switching up/down like swiper or like fzf in vim?

How can I make imenu (with ivy wrapper) act like swiper, that mean auto switch to location when I use arrow key( or ivy-previous/next-line function) and if I exit it will come back to current location?...
0
votes
0answers
27 views

How do I move back to the previous page I was viewing, in Emacs Easy Customization buffer?

In the Info buffer, I can use the [ key to move the previous page, or the l key to move back through my personal viewing history. How can I do something similar, in the Easy Customization buffer? I'd ...
0
votes
0answers
13 views

Is there an easy way to copy files with ido navigation?

I'd like to be able to do something like this: Navigate to a buffer associated with a file C-x C-w (enter file ido file writing mode) navigate via ido to another directory Do something at this point ...
0
votes
0answers
24 views

emacs navigation keys doesn't work when input is not english

I'm korean, and I use english / korean while editing in emacs I mainly used terminal based emacs (emacs -nw) and in there, I can do basic navigation (such as C-e for move to end) in any language I'm ...
0
votes
0answers
18 views

forward-sexp in markdown-mode doesn't handle backquoted expressions

How do I modify the syntax table to make forward-sexp and backward-sexp correctly skip over backquoted (code) expressions? For instance, if my markdown file contains a line like The C statement is `...
0
votes
0answers
16 views

Moving back to previous cursor position in rg.el

I am using rg(https://github.com/dajva/rg.el) to search in a project. When I click on one of the files rg has found and go to that location I am unable to go back to the previous location. I have ...
0
votes
0answers
38 views

What does the “Mark set” message mean when going to the beginning or end of the buffer?

Opening emacs -Q, then Pressing Ctrl-Home or Ctrl-End also shows this message. Mark set What is happening? Why is the mark set and is there a way not to set the mark?
0
votes
1answer
64 views

forward/backward/next/previous element against YAML?

The lisp program is structured language, and one can execute C-M-f(forward-sexp) to pick the next sibling element. Similarly, C-M-b, C-M-u, C-M-d are defined; they can be used to move the cursor to ...
0
votes
0answers
130 views

How can I run (recenter) after (call-interactive …) that jumps to a buffer?

I would like to jump to a buffer using rtags for eg. Example snippet: (defun generic-lookup () "Follow link/goto line." (interactive) (cond ((string= major-mode "c-mode") (progn ...
0
votes
1answer
331 views

Enter does nothing in NeoTree

I have NeoTree installed. When I navigate through folders and files in it and when I press enter, nothing happens. I don't get into a directory. I've tried TAB also -- nothing. M-x describe-key ...
0
votes
0answers
61 views

Using advices to flatten a single subfolder

One of Github's features i like is that it "flattens" path if a folder contains only one subfolder, i.e you have a src folder which has only main folder, so by clicking on src you go to the content of ...