<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Daily links posting, not for me.</title>
	<atom:link href="http://peadrop.com/blog/2007/02/14/daily-links-posting-not-for-me/feed/" rel="self" type="application/rss+xml" />
	<link>http://peadrop.com/blog/2007/02/14/daily-links-posting-not-for-me/</link>
	<description>Random Computer Musings</description>
	<pubDate>Tue, 06 Jan 2009 10:42:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Alexandre</title>
		<link>http://peadrop.com/blog/2007/02/14/daily-links-posting-not-for-me/#comment-92</link>
		<dc:creator>Alexandre</dc:creator>
		<pubDate>Sun, 25 Feb 2007 21:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/02/14/daily-links-posting-not-for-me/#comment-92</guid>
		<description>&lt;p&gt;Thanks for the tip, Bluedot. However, I usually prefer using the normal key bindings over the F-keys, simply because I don't have to move far away from the home row. If you are interested, you could peek into my Emacs keyboard bindings, &lt;a href="http://svn.peadrop.com/emacs/lisp/ekeys.el" rel="nofollow"&gt;here&lt;/a&gt;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, Bluedot. However, I usually prefer using the normal key bindings over the F-keys, simply because I don&#8217;t have to move far away from the home row. If you are interested, you could peek into my Emacs keyboard bindings, <a href="http://svn.peadrop.com/emacs/lisp/ekeys.el" rel="nofollow">here</a>.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Bluedot</title>
		<link>http://peadrop.com/blog/2007/02/14/daily-links-posting-not-for-me/#comment-91</link>
		<dc:creator>Bluedot</dc:creator>
		<pubDate>Sun, 25 Feb 2007 06:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://peadrop.com/blog/2007/02/14/daily-links-posting-not-for-me/#comment-91</guid>
		<description>&lt;p&gt;Here are some very useful key mappings that I have used for the last 15 years
for writing code. Why press 3 keys at once to do what a function key can do.
There may be issues on a Mac. Just go to preferences, keyboard, and disable the function keys. If these keys do not work for you (may not work as advertised on a Sun Solaris/Sparc based computer keyboard or other funky keyboard) then use
M-x describe key to find out what your function keys are mapped to and change the contents of [].&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
(global-set-key [f1 ] 'indent-region           ) ;; search-forward-regexp
;; one key undo
(global-set-key [f2 ] 'undo                    )

;; macros save lots of time
(global-set-key [f3 ] 'call-last-kbd-macro     )
(global-set-key [f4 ] 'start-kbd-macro         )
(global-set-key [f5 ] 'end-kbd-macro           )

;; if you program rectangle operations save time
;; use C-space to set the mark
;; then move the cursor to define th rectangle.
;; takes a little experience to get this work right but after that
;; you can't live without rectangles
(global-set-key [f6 ] 'clear-rectangle         )
(global-set-key [f7 ] 'delete-extract-rectangle)
(global-set-key [f8 ] 'kill-rectangle          )
(global-set-key [f9 ] 'string-rectangle        )

;; fast search and replace
(global-set-key [f10] 'query-replace-regexp    )
(global-set-key [f11] 'yank-rectangle          )

(global-set-key [f12] 'goto-line               )

(global-set-key [insert] 'yank)
(global-set-key [remove] 'kill-region)
(global-set-key [select] 'set-mark-command)

(global-set-key [kp-f1] 'beginning-of-buffer)
(global-set-key [kp-f2] 'end-of-buffer)
(global-set-key [kp-f3] 'delete-other-windows)

(global-set-key [kp-f4] 'kill-line)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Use autoload to set the major mode when programming&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
(fmakunbound 'c-mode)
(makunbound 'c-mode-map)
(fmakunbound 'c++-mode)
(makunbound 'c++-mode-map)
(makunbound 'c-style-alist)
(autoload 'c++-mode  "cc-mode" "C++ Editing Mode" t)
(autoload 'c-mode    "cc-mode" "C Editing Mode" t)
(autoload 'objc-mode "cc-mode" "Objective-C Editing Mode" t)
(setq auto-mode-alist
      (append '(("\.C$"  . c++-mode)
                    ("\.cc$" . c++-mode)
                    ("\.c$"  . c++-mode)
                    ("\.h$"  . c++-mode)
                    ("\.m$"  . objc-mode)
                    ("\.pl$"  . perl-mode)
                    ) auto-mode-alist))
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Here are some very useful key mappings that I have used for the last 15 years
for writing code. Why press 3 keys at once to do what a function key can do.
There may be issues on a Mac. Just go to preferences, keyboard, and disable the function keys. If these keys do not work for you (may not work as advertised on a Sun Solaris/Sparc based computer keyboard or other funky keyboard) then use
M-x describe key to find out what your function keys are mapped to and change the contents of [].</p>

<pre><code>
(global-set-key [f1 ] &#8216;indent-region           ) ;; search-forward-regexp
;; one key undo
(global-set-key [f2 ] &#8216;undo                    )

;; macros save lots of time
(global-set-key [f3 ] &#8216;call-last-kbd-macro     )
(global-set-key [f4 ] &#8217;start-kbd-macro         )
(global-set-key [f5 ] &#8216;end-kbd-macro           )

;; if you program rectangle operations save time
;; use C-space to set the mark
;; then move the cursor to define th rectangle.
;; takes a little experience to get this work right but after that
;; you can&#8217;t live without rectangles
(global-set-key [f6 ] &#8216;clear-rectangle         )
(global-set-key [f7 ] &#8216;delete-extract-rectangle)
(global-set-key [f8 ] &#8216;kill-rectangle          )
(global-set-key [f9 ] &#8217;string-rectangle        )

;; fast search and replace
(global-set-key [f10] &#8216;query-replace-regexp    )
(global-set-key [f11] &#8216;yank-rectangle          )

(global-set-key [f12] &#8216;goto-line               )

(global-set-key [insert] &#8216;yank)
(global-set-key [remove] &#8216;kill-region)
(global-set-key [select] &#8217;set-mark-command)

(global-set-key [kp-f1] &#8216;beginning-of-buffer)
(global-set-key [kp-f2] &#8216;end-of-buffer)
(global-set-key [kp-f3] &#8216;delete-other-windows)

(global-set-key [kp-f4] &#8216;kill-line)
</code></pre>

<p>Use autoload to set the major mode when programming</p>

<pre><code>
(fmakunbound 'c-mode)
(makunbound 'c-mode-map)
(fmakunbound 'c++-mode)
(makunbound 'c++-mode-map)
(makunbound 'c-style-alist)
(autoload 'c++-mode  "cc-mode" "C++ Editing Mode" t)
(autoload 'c-mode    "cc-mode" "C Editing Mode" t)
(autoload 'objc-mode "cc-mode" "Objective-C Editing Mode" t)
(setq auto-mode-alist
      (append '(("\.C$"  . c++-mode)
                    ("\.cc$" . c++-mode)
                    ("\.c$"  . c++-mode)
                    ("\.h$"  . c++-mode)
                    ("\.m$"  . objc-mode)
                    ("\.pl$"  . perl-mode)
                    ) auto-mode-alist))
</code></pre>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.493 seconds -->
