-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I thought I knew how to set coding-system (or encoding): use process-coding-system-alist. Apparently, it's not working.
;; -*- coding: utf-8 -*-
(require 'cl)
(let
((process-coding-system-alist '("cygwin/bin/bash" . (utf-8-dos . utf-8-unix))))
(setq my-words (list "Lilo" "?_?" "_?" "?_" "?"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm making some tedious calls to a bunch of functions, but the parameters will be determined at runtime. I wrote a simple function to keep my code DRY but giving it a name is unnecessary. I don't use this function anywhere else.
I'm trying to do it the way I would in Scheme, but I get a void-function…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I would like to temporarily override the kill-new function. I have a way I want to reimplement kill-new that works in only in certain contexts, but I don't want to reimplement a special version of kill-region on top of that. (kill-new is called from kill-region)
Since Emacs Lisp uses dynamic scoping…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'd like to recenter a buffer, called "Lense", where I've inserted some text. I wished to make it the current buffer by "(set-buffer "Lense")", then "(recenter 0))". By the following code segments:
(save-excursion (set-buffer "Lense")
(recenter 0))
However, it seems that the above…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am hacking up a tagging application for emacs. I have got a tag cloud/weighted list successfully displaying on a buffer, but i am running into a snag. I need to be able to properly word-wrap the buffer, but I haven't a clue where to start.
The font I am using is a variable width font. On top…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have text files with tables like this:
Investment advisory and
related fees receivable (161,570 ) (71,739 ) (73,135 )
Net purchases of trading
investments …
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am starting with emacs, and don't know much elisp. Nearly nothing, really.
I want to use ack as a replacement of grep.
These are the instructions I followed to use ack from within emacs:
http://www.rooijan.za.net/?q=ack_el
Now I don't like the output format that is used in this el file, I would…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
My problem is I am opening a buffer using
(set-buffer (find-tag-noselect (current-word)))
and then I try to copy some text out of that buffer. The text that I get back has only the properties (fontified nil). find-tag-noselect automatically opens the buffer found in the TAGS file but it seems…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following dead simple elisp functions; the first removes the fill breaks from the current paragraph, and the second loops through the current document applying the first to each paragraph in turn, in effect removing all single line-breaks from the document. It runs fast on my low-spec…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hello
I have written few functions, which nearly identical, save for names. For example
; x is name, such as function/paragraph/line/etc.
(defun my-x-function
(interactive)
(mark-x) (do-more-stuff) (modify-x))
is there a way to put it automatically? I have a feeling this is what macros do,…
>>> More