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).

Filter by
Sorted by
Tagged with
0
votes
0answers
59 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 ...
3
votes
1answer
355 views

Navigate cursor position history with line-based jumps

I use point-undo to jump between positions in the cursor history. However, point-undo uses every previous position of the cursor, and I often experience that what I actually want is to jump just to ...
0
votes
1answer
34 views

linum referring to the top of the window

I use the "go to line" navigation a lot, but mostly of the time I have to type a three digit number in order to navigate through the document. I would like to have a row count referring to the ...
0
votes
2answers
325 views

browsing/navigating reStructuredText

What Emacs utilities can provide better browsing and navigation of reST documents? Alternatively, how to configure existing utilities to work with reST? What I mean, why I ask: Of the lightweight ...
3
votes
0answers
84 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+...
2
votes
1answer
300 views

Back/forward navigation that works like IntelliJ/Eclipse

I've been trying to find a navigation package that allows backwards/forwards navigation across and within buffers. I have found a lot of solutions out there but none of them seem to solve the whole ...
2
votes
1answer
48 views

Previous/next occur result, independently from compilation errors

After running M-x occur, the commands next-error and previous-error let me navigate between hits. I would like to be able to M-x compile my program and then keep browsing through the same *Occur* ...
2
votes
0answers
123 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">...
1
vote
0answers
27 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. % ...
9
votes
2answers
1k views

Navigate to the source code of built-in functions and variables

Throughout the day I am constantly using C-h f or C-h v (describe-function and describe-variable) to look up documentation for functions and variables. More often than not, if I don't get all the ...
1
vote
0answers
210 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 ...
3
votes
2answers
319 views

Make forward-word not to jump over newline character

I have a text like this, testStatus['id'] = elt.$.id^^''&&&& testStatus$$['suite_id'] = "" where ^^ is my cursor position. When I press M-f, it uses forward-word and end up in the ...
0
votes
2answers
98 views

Navigating rspec files

Usually I use incremental searching to find what I'm looking for. Also, in general I write very small methods that easily fit in one screen. So before now I have had little use for any sort of code-...
1
vote
0answers
219 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 ...
12
votes
2answers
5k views

Better indentation and navigation in assembly source code

When I write C or Java code it's extremely regular, but with assembly (asm-mode), it's so disorganized. I'm using auto-complete and yasnippet. I created snippets and am using them, but the code ...
3
votes
3answers
2k views

How to open files out of long directory trees using helm-find-files?

Helm features buffer navigation that is more powerful than ido but apparently has a bit of a learning curve. Say I want to open a file in java/com/example/apple/banana/cat/dog/elephant/fig/grape/...
3
votes
2answers
346 views

forward-sexp goes to eol in python mode (but only sometimes)

When I run the command forward-sexp at the beginning of the line in Python mode, my cursor jumps to the end of the line. I assume that the line is a statement, and is therefore considered to be a ...
2
votes
0answers
369 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 ...
6
votes
1answer
50 views

forward paragraph — ignore carriage return in comment

I like to use the forward- and back-paragraph methods to jump around my source code. I would like it to behave slightly differently though. Consider the following comment block: // comment line one....
6
votes
2answers
1k views

Emacs lisp forward-sexp: Scan error: “Containing expression ends prematurely”

When writing Emacs Lisp code, I use forward-sexp (C-M-right) and backward-sexp (C-M-left) to navigate the buffer. However, in some cases these functions stops with error like: forward-sexp: Scan ...
13
votes
1answer
1k views

When switching buffers, prevent emacs from automatically switching frame

When I switch buffers, emacs will switch to an existing frame if the buffer is already opened there. I found how to prevent that when switching with ido using : (setq ido-default-buffer-method '...
12
votes
3answers
1k views

Treat symbols as words in prog modes

There are a number of commands in Emacs which apply to "words." Examples include forward-word, kill-word, upcase-word, mark-word, transpose-words, etc. The definition of "word" seems to vary a bit ...
23
votes
1answer
6k views

Synchronized scrolling in two windows

Is there a way to reflect the navigation commands in the current window in another visible window. I have two related LaTeX files displayed in two windows and would like to scroll through them ...

1
2