Questions tagged [capitalization]

21 questions
11
votes
2 answers

Is there an Emacs mode convenient for writing poetry?

I've tried simple searches on Google and MELPA with keywords like "emacs poetry mode" or "emacs verse mode" but haven't found anything specifically built for the purpose. The manual walks through some common extensions to text-mode but they're…
purple_arrows
  • 2,373
  • 10
  • 19
7
votes
3 answers

Convert the first character to uppercase/capital letter using yasnippet

Q: I have the following Yasnippet, which looks like this: MYNAME - $1 (`(insert-mode-description)`). $2 When I insert the snippet, the cursor starts on $1. Then I begin with typing. I would like to convert the first character of the sentence…
ReneFroger
  • 3,855
  • 22
  • 63
6
votes
2 answers

When typing, automatically transform SPC SPC into PERIOD SPC SPC

I would like the period at the end of a sentence to be added automatically when two spaces are typed (similar to how typing works in iPhones). I use two spaces between sentences, so the transformation I would like to happen would look like this: b l…
scaramouche
  • 1,772
  • 10
  • 24
5
votes
0 answers
5
votes
1 answer

How to use a particular syntax table with arbitrary functions?

I have an Elisp function which takes a string and performs capitalization (capitalize) on it, and then inserts it into a file. Apparently capitalize doesn't consider the single quote as a "word constituent" and therefore I get results like "I'M A…
sixter
  • 113
  • 7
4
votes
3 answers

Search for and correct capitalized words that are not at the beginning of a sentence

I have a latex document in which there are many incorrectly Capitalized words. Could anybody suggest a clever regex to track them? Even better if there is a function which cycles through such words corrects them by asking yes or no.
kindahero
  • 528
  • 4
  • 11
3
votes
1 answer

How to handle autocapitalize for things like i.e., e.g.?

In auto-capitalize mode, whenever Latin abbreviations such as e.g. or i.e. are entered, auto-capitalize mode seems to be too eager, and capitalizes the first letters E and I after the first period . is entered. Is it possible to configure the mode…
tinlyx
  • 1,276
  • 1
  • 12
  • 27
3
votes
0 answers

What is confusing about upcase-region?

Using upcase-region gives the message about it being disabled because new users find it confusing; but it seems very straightforward—replace every character with its upper-case version, if there is one. Am I missing something in what the function…
Infiltrator
  • 223
  • 1
  • 4
3
votes
1 answer

Do not auto-capitalize when editing an equation in AUCTeX or org-mode

I would like the auto-capitalize minor mode not to capitalize mathematical text in AUCTeX and org-mode. To avoid this, when running in either of these modes, auto-capitalize should only capitalize when the function texmathp returns nil. The…
scaramouche
  • 1,772
  • 10
  • 24
3
votes
1 answer

fixing auto-capitalize to work with org-mode headings and lists

I want the auto-capitalize minor mode to work well with org-mode. Currently, auto-capitalize does not capitalize the first word in headings or list items (i.e., the word after '*' or '-'). For example, the following transformations are not…
scaramouche
  • 1,772
  • 10
  • 24
3
votes
2 answers

how to make auto-capitalize-mode downcase next word upon auto-capitalization?

Suppose I have a sentence: Two three four. Suppose I put the point on the "T" in "Two" and enter the text oneSPC. Auto-capitalize-mode will recognize that the point is at the beginning of a line or sentence, and will automatically capitalize the…
incandescentman
  • 4,111
  • 16
  • 53
2
votes
2 answers

Advanced title capitals functionality available?

Looking at this page it seems title-capitals can get reasonably involved. Do packages exist that perform title-caps with support for some of these rules?
ideasman42
  • 8,375
  • 1
  • 28
  • 105
2
votes
0 answers

How to use company-transform to uppercase SQL keywords

company-transform seems can be used to apply function on candidates. How to uppercase all SQL keywords which are in company complete candidates? only apply this transform function in SQL/NoSQL buffers, like some modes: redis, edbi, etc. use SQL…
stardiviner
  • 1,888
  • 26
  • 45
1
vote
0 answers

Why is auto-complete using capitalized words? Is there a way to change the default of suggestions while in Slime's Buffer?

Recently, I have started using this emacs package: auto-complete. It works and I am enjoying it. I mainly use emacs to work in Common Lisp (SBCL) with Slime. Unfortunately, the first suggestion that appears is always capitalized case in the Slime's…
Pedro Delfino
  • 1,369
  • 3
  • 13
1
vote
1 answer

`capitalize` capitalizes letters following an apostrophe

I wrote an Elisp script to deal with some file names with English phrases. capitalize converts "I'm a cat" to "I'M A Cat". What's the right way to get the desired result? ("I'm A Cat") Should I use regex and write my own capitalization function?
sixter
  • 113
  • 7
1
2