Questions tagged [dabbrev]

15 questions
49
votes
1 answer

How to make Company mode be case-sensitive on plain Text?

By default, Company mode seems to convert every prediction into lower case. E.g: HelloWorldOfGoo HelloWorldOfEmacs -> Hell [Helloworldofgoo] //Company prediction [Helloworldofemacs] This is not very practical for case sensitive…
Leo Ufimtsev
  • 4,488
  • 3
  • 22
  • 45
9
votes
2 answers

case-sensitivity of word completion using dabbrev

I sometimes use M-/ to complete words but it is not case sensitive. For example : the word is : showPublic and when I write show and then put M-/, It completes as showpublic. How can I fix this ? Or at least, how can I see the possible completion ?
Vivian Maya
  • 787
  • 1
  • 6
  • 17
3
votes
2 answers

How to use abbrev for words with dollar-sign ($) as prefix?

My setup GNU Emacs GUI (version 24.4.51.1 (x86_64-w64-mingw32) compiled from Harroogan Emacs.) Situation I would like to type a word in PHP-mode, and it will automatically expand to a proper word. For example, I would like…
ReneFroger
  • 3,855
  • 22
  • 63
2
votes
0 answers

Markov matcher for dabbrev

While writing plain text (not code), I'd like a completion based on more context, an exmple would speak more so here it is: Given the following buffer (a preloaded big text corpus would make more sense in reality): foo bar baz foo bar baz foo bar…
2
votes
1 answer

How to make dabbrev support CamelCase or a better auto-completion in java buffers

I use dabbrev as my auto-complete function (and since most of what I code is snake_case it works well). However, I'm now doing a Java project and everything is CamelCase. How do I make dabbrev support CamelCase? Or is there a different…
intel_chris
  • 329
  • 2
  • 12
2
votes
1 answer

Company duplicates

I use gtags, jedi and dabbrev for python. Sometimes the duplicates get a bit annoying. I read that using :with should sort out the duplicates problem. However, it does not... Is there a better solution that this? : (add-hook 'python-mode-hook …
2
votes
1 answer

how to ignore hyphens in completion candidates using company-dabbrev backend?

How can I modify company-dabbrev to behave like other company-backends, so I also receive words as completion candidates, that are connected with hyphens.
bertfred
  • 1,699
  • 1
  • 11
  • 23
2
votes
1 answer

Use hippie-expand to complete ruby symbols without prefix

I am an avid hippie-expand user but I find it annoying that it natively doesn't complete ruby symbols without the prefix. For example (cursor is |): class ApplicationController < ActionController::Base before_action :some_action protected …
waymondo
  • 1,384
  • 11
  • 16
1
vote
1 answer

Difference between dynamic completion and hippie expand

I've been starting to use dynamic completion with icicle-support in Emacs (command icicle-complete with dynamic-completion-mode on), but now I've stumbled over hippie-expand and it sounds like they both are doing very similar things, so I'm not sure…
1
vote
1 answer

Unexpected dabbrev-expand forward completion behavior

Given a buffer containing a abc with point immediately following the first a, ↓ a abc if I perform forward completion with (dabbrev-expand -1), it produces the result I would expect: ↓ abc abc But given a buffer containing aabc with point…
ivan
  • 1,928
  • 10
  • 20
1
vote
1 answer

Replace a character with a string as it is typed

I would like to do the following: activate some mode so that whenener I type the $ character in my buffer, it immediately gets replaced by . Even better: when I type $ it puts and places the cursor between the matching tag pair. I have no…
NWMT
  • 115
  • 4
1
vote
1 answer

How can I prevent company-mode completing non-English chars?

i tried these codes before, but none of them works for me . how can i edit this to achieve my goal.
Yu Su
  • 111
  • 4
0
votes
1 answer

Automatic popup of words from the buffer using Corfu and Dabbrev

How can I make Dabbrev and Corfu automatically show a pop-up for the words from my current buffer? For example, if I write "example" somewhere in a document, I would like it pops up automatically when I start writing "exa". I have Corfu-global-mode…
sm10
  • 1
0
votes
1 answer

How to refresh dabbrev candidates displayed by company after each save

I've been using Ivy Irony Company for some time and it works great on all libraries I included in my C++ program so far, but I've noticed Ivy rarely auto-completes my user defined classes, objects, variables and enumerations. I've read about company…
Tomislav
  • 1
  • 2
-3
votes
1 answer

Adding replacement strings to a list

I want to add replacements to matching words to a list called nscrip. I already have a large number of lists that I use for dabbrev, written in the following form. Perhaps I can use these lists, or else have two lists (one for matching and one for…
Dilna
  • 1,173
  • 3
  • 10