public
Description: Phil Hagelberg's personal dotfiles collection: the product of years of accumulated obsessive minor tweaks. Mostly Emacs Lisp.
Homepage: http://technomancy.us
Clone URL: git://github.com/technomancy/dotfiles.git
minor .emacs tweaks
Phil Hagelberg (author)
Tue Apr 08 17:15:28 -0700 2008
commit  276f2fd5d75775367562183754705b62e1e074e6
tree    09f0700455d617e29eb2d048cebe26722fb68745
parent  4299918e8537170c6bf8da498d8c681c58b62d9d
...
74
75
76
77
 
78
79
80
...
74
75
76
 
77
78
79
80
0
@@ -74,7 +74,7 @@
0
 (defun my-coding-hook ()
0
   "Enable things I consider convenient across all coding buffers."
0
   ;; (indent-buffer)
0
- (setq show-trailing-whitespace t)
0
+ (set (make-local-variable 'show-trailing-whitespace) t)
0
   (font-lock-add-keywords nil
0
        '(("\\<\\(FIX\\|TODO\\|FIXME\\|HACK\\|REFACTOR\\):" 1 font-lock-warning-face t))))
0
 
...
40
41
42
 
 
 
 
 
 
43
44
45
...
40
41
42
43
44
45
46
47
48
49
50
51
0
@@ -40,6 +40,12 @@
0
 ;; q to bury-buffer
0
 ;; thanks; don't need a message every time HTTP GETs work
0
 
0
+;;; Bugs:
0
+
0
+;; should warn if you go over 140 chars
0
+;; sometimes icons get mixed up
0
+;; should not create a *twittering* buffer when you require it.
0
+
0
 ;;; Code:
0
 
0
 (require 'cl)
...
2
3
4
 
5
6
7
...
2
3
4
5
6
7
8
0
@@ -2,6 +2,7 @@ startup_message off
0
 defscrollback 3000
0
 msgwait 1
0
 nethack on
0
+bind s # remove the flow control garbage
0
 
0
 escape ^Zz
0
 
...
7
8
9
10
11
 
 
12
13
14
 
15
16
17
18
 
19
20
21
...
7
8
9
 
 
10
11
12
13
 
14
15
16
17
 
18
19
20
21
0
@@ -7,15 +7,15 @@ include Magick
0
 
0
 raise ArgumentError, "usage: imageify.rb <text file> <image file>" if ARGV.size != 2
0
 
0
-class Canvas
0
- def initialize(text, image)
0
+class Canvas
0
+ def initialize(text, image)
0
     @text = text.gsub(/\n/, ";").squeeze(" ")
0
     ratio = (image.columns / image.rows.to_f) * 2 # letters are not square!
0
-
0
+
0
     @rows = (Math::sqrt(@text.size/ratio))
0
     @columns = (@rows * ratio).ceil
0
     @rows = @rows.ceil
0
-
0
+
0
     @resized = image.scale(@columns, @rows)
0
   end
0
 

Comments

    No one has commented yet.