2,428 reputation
716
bio website trey-jackson.blogspot.com
location Corvallis, OR
age 42
visits member for 4 years, 11 months
seen Nov 21 '13 at 22:34
There once was a man from the stix,
Who liked to write limericks.
But he failed at the sport,
Because he wrote them too short.

Nov
19
comment Setting major-mode specific keybindings in emacs
@NikanaReklawyks You're right, defining it in a hook is not as clean as using an eval-after-load statement in this case. I'll update the answer appropriately.
Jan
17
comment How to indent a block of text rightward by 2 whitespace characters in Emacs?
@duperuser When you're at the beginning of a block, M-x mark-sexp will put the mark at the end - which is all you need to do.
Jan
17
comment How to indent a block of text rightward by 2 whitespace characters in Emacs?
There are two ways to mark a region of code: M-x mark-sexp and M-x mark-defun.
Dec
6
comment isearch-forward-regexp key binding using Ctrl+Alt+s
That leads me to believe that the window system is not passing that event to Emacs. I'd ask the same question on askubuntu.com
Dec
5
comment isearch-forward-regexp key binding using Ctrl+Alt+s
What does Emacs tell you is bound to when you type: C-h k C-M-s?
Sep
2
comment How to insert a new line and jump to it, in emacs?
@Freewind answer updated
Jul
22
comment How to prevent the “Symbol's function definition is void: error” when running emacs in the console?
Ok, now how about M-x find-library simple RET - that should take you to where Emacs is installed, then C-x C-d to open a dired, and in that directory there should be a scroll-bar.elc. Though the directions might fail if the Emacs wasn't installed with source lisp code...
Jul
22
comment How to prevent the “Symbol's function definition is void: error” when running emacs in the console?
Very odd. Ok, next test is running Emacs w/out your .emacs, emacs -nw -q, and then in the scratch buffer, type (scroll-bar-mode -1)C-j and see if you get an error. That function is distributed with Emacs in the scroll-bar.el package, so I'm guessing your .emacs has something odd, or the Emacs wasn't installed properly.
Jul
21
comment How to prevent the “Symbol's function definition is void: error” when running emacs in the console?
Emacs probably gave you a Warnings buffer telling you to run emacs with the --debug-init option to get a complete error backtrace. Try that and add that information to the question. Along with the Emacs version M-x emacs-version. That chunk of code works just fine with Emacs 23.2.
Jul
21
comment How to prevent the “Symbol's function definition is void: error” when running emacs in the console?
(toggle-scroll-bar -1) works just fine in emacs -nw for Emacs 23.2...
Jan
10
comment Deleting slow on X11 emacs
@Malvolio I updated the answer to provide xor, and you might need to leave the cut-function as nil for a while.
Jan
5
comment Emacs protection against simultaneous editing by same user
@PeterEisentraut If both Emacs are just viewing the file, there's no need. As soon as they modify the file, Emacs will warn (before saving, just modifying will trigger the warning).
Dec
17
comment Can I find out which files are open in an Emacs instance running on remote workstation?
I didn't need to sudo, so I don't think so.
Nov
26
comment Is it possible to map a command to only the Alt key in Emacs?
It's also the case for graphical versions of emacs.
Sep
7
comment emacs: How to return to last position after scroll/page up/down?
@Gilles True, but then your undo stack just grew by two more elements. :)
Jul
2
comment emacs or vi which should a windows user learn?
@JoshK Apologies, I can't read and confused you with the original poster.
Jun
27
comment emacs or vi which should a windows user learn?
@JoshK Why are you even asking the question then?
Jun
26
comment emacs or vi which should a windows user learn?
@JoshK Then there's your answer to the question.
Jun
25
comment emacs or vi which should a windows user learn?
@JoshK If you don't like meta chords, then you won't like Emacs.
Jun
21
comment How can I enter query-replace in GNU Emacs using a repeatable function based on values in the line currently at point
Where did you want to do the replacement? In that same buffer, or a different one?