I would like to invoke M-x helm-swoop such that it does NOT return the symbol at point. I find that it always picks up undesired symbols, e.g. when I invoke M-x helm-swoop in org-mode, I get Swoop: \*, and I then have to delete the \* before I can enter my desired search term. How can I do this?
how to prevent helm-swoop from returning symbol at point?
445 Views Asked by incandescentman At
1
There are 1 best solutions below
Related Questions in EMACS
- EMACS-Live + Slime error at startup
- Auto complete of braces in emacs
- tmux + emacs : ctrl is not reconized
- yasnippet weird-input when org-mode :tag: on same line
- Error in Dired sorting on Windows (with Cygwin Emacs)
- ESS produces "Variable binding depth exceeds max-specpdl-size"
- How to simplify the mode-line, and enter evil-insert-state depending on buffer name
- MELPA pointing to non-existent version of multi-term?
- Mark-up for bold and italic in emacs org-mode
- How to get C-` key combo recognized in Emacs under Mac?
- how to install Emacs Prelude system-wide on windows/MinGW?
- Emacs on Windows 8: write-error, bad file descriptor
- Emacs and Skim not in Sync fails to open
- Emacs web mode selection word delimiters include _
- Error loading D:\cygdrive\d\path\to\my\file.pdf
Related Questions in EMACS-HELM
- Emacs helm: Adding new sources to helm-mini
- Is there some kind of "package-search" function available for Emacs?
- Emacs and Helm - How to not show 'buffer-history' when i do 'kill-buffer'
- Emacs helm with multiple sources
- Open file in external browser using `helm-for-files`?
- Open a fixed file from a project (in Emacs Projectile)
- Emacs, steal helm configuration from spacemacs
- how to prevent helm-swoop from returning symbol at point?
- Syntax to set several folders for helm-ag
- How to tell grep to ignore folders in Spacemacs project keyword/symbol search?
- Emacs, "helm-grep-do-git-grep" ---> git --no-pager grep
- Emacs. Helm package. How find files in folder (not a git folder) and all subfolders?
- Why can't I edit text in Emacs buffer *hmoccur* after I disable read-only?
- Helm multi-selection pre select multiple candidates
- How to install emacs prelude on Windows
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This has been bugging me as well, for exactly the same reason (swoop in an Org-mode buffer picking up heading characters), so this question motivated me to go and look.
Looking at the source, Helm-swoop calls
helm-swoop-pre-input-functionto populate the prompt, and by default this is set to a function that returns(thing-at-point 'symbol), which is what causes the problem in headings.A quick test with the following in my init file seems to work:
This could certainly be improved by, for example, keeping the default behaviour in non-Org buffers but as I'm only really using swoop in Org buffers this is good enough for me.