Skip to main content

palindrome emordnilap's Library tagged emacs   View Popular

13 Apr 09

planner-el

    • If you create a task while viewing any buffer other than a Planner
      day page, Planner will associate the task with a hyperlink to that
      buffer. Try it now by creating a task from this Info buffer.


      1. M-x planner-create-task-from-buffer
      2. When prompted for the task name, enter Learn how to change a task's
        status
        and press <RET>.

      3. When prompted for the date, press <RET> to schedule the task for
        today.

      4. When prompted for the project page, press <RET> to accept the
        default page of ‘TaskPool’. This is a page for tasks not connected
        to a larger plan.

  • 6.2.1.4 Cyclic Tasks



    If there are tasks that you have to do regularly, you can have Planner
    schedule those tasks automatically.

    Make sure that planner-cyclic.el is in your load path and add
    this to your .emacs (or _emacs):

         (require 'planner-cyclic)

    Create a diary file named ~/.diary.cyclic-tasks
    (or the value of planner-cyclic-diary-file). Here is an example:

         Tuesday #B0 _ Study Japanese
    Friday #B0 _ Study Japanese (JapaneseStudies)

    The first will be a plain task, the second will be linked. The first
    line will automatically create its task every Tuesday, while the
    second will create it every Friday.

    You can schedule tasks in a variety of ways. This module uses the same
    syntax for specifying when tasks will be scheduled as the Emacs diary
    uses for appointments and events. See the GNU Emacs Manual, and the GNU Emacs Lisp Reference Manual, for a full
    description of the possibilities.

    By default, planner-cyclic creates multiple tasks if you let tasks build
    up (that is, the next Tuesday rolls around and you still haven't
    marked the task as done.) To turn off this behavior:

         (setq planner-cyclic-diary-nag nil)

    Functions



    planner-cyclic-diary includes the following interactive
    functions:


    — Function: planner-cyclic-create-tasks-maybe

    Maybe create cyclic tasks. This will only create tasks for future
    dates or today.

  • 1 more annotations...
19 Nov 08

Slashdot | (Stupid) Useful Emacs Tricks?

  • Always handy when doing a bit of work remotely. Put:

    (require 'tramp)
    (setq tramp-default-method "scp")

    in one's .emacs file. Then open remote files with:

    /username@host:remote_path

  • One of my favorite emacsisms a long time ago was ange-ftp, and the modern descendant, tramp, is one of my current faves. It lets you edit remote files over lots of protocols, including: ssh, scp, ftp, rsync, ftp, and smb.

    Most emacs stuff works transparently, like dired and archive browsing. When you edit a file and save it, it's automatically put back on the remote machine. I have had trouble with psvn, but that's about the only thing that I kinda expected to work that didn't.

    If you edit remote files and you use emacs, you want to start using this.

  • 4 more annotations...
09 Jun 08

9 Tips for the aspiring Emacs playboy | LispCast

  • 1. Post up a cheat sheet


    Create your own cheat sheet with ten key bindings you'd like to learn. No more than 10. Don't burden yourself with a gigantic list you'll have to search through. You won't be able to find them quickly enough, and you'll stop referring to the sheet.

    • Excellent idea. - on 2008-06-09
    Add Sticky Note
  • 2. Don't use the mouse
  • 8 more annotations...

Stevey's Home Page - Effective Emacs

  • Item 1: Swap Caps-Lock and Control
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout



    Click on the KeyboardLayout entry to give it the focus. Make sure it has the focus and not one of its children. Then from the Edit menu, choose New Binary Value, and name it Scancode Map. It should show as type REG_BINARY.



    Then select the new Scancode Map entry you just created, and from the Edit menu (whose contents should have changed), choose Modify Binary Data. In the dialog box called Edit Binary Value, enter the following data:




     0000: 00 00 00 00 00 00 00 00
    0008: 03 00 00 00 3A 00 1D 00
    0010: 1D 00 3A 00 00 00 00 00

    Select OK to close the dialog, then exit the Registry Editor. The caps and ctrl keys should be swapped as soon as you log out and back in again. It may require a reboot.

    • How to map ctrl key to caps lock in Windows. - on 2008-06-09
    Add Sticky Note
  • 11 more annotations...

EmacsWiki: Mark Commands

  • pop-global-mark (`C-x C-SPC')

    Similar to the above:

    In addition to the ordinary mark ring that belongs to each buffer, Emacs has a single “global mark ring”. It records a sequence of buffers in which you have recently set the mark, so you can go back to those buffers.

    Setting the mark always makes an entry on the current buffer’s mark ring. If you have switched buffers since the previous mark setting, the new mark position makes an entry on the global mark ring also. The result is that the global mark ring records a sequence of buffers that you have been in, and, for each buffer, a place where you set the mark.

    The command ‘C-x C-SPC’ (‘pop-global-mark’) jumps to the buffer and position of the latest entry in the global ring. It also rotates the ring, so that successive uses of ‘C-x C-SPC’ take you to earlier and earlier buffers.

EmacsWiki: Zap To Char

  • Emacs provides a zap-to-char command that kills from the current point to a character. It is bound to ‘M-z’. Examples of its usage, include:

    ‘M-z e’
    deletes all characters to the next occurence of “e”.
    Typing ‘C-u 2 M-z e’
    deletes all character to the second occurence of “e”.
    Typing ‘C-- M-z e’
    deletes all characters to the previous occurence of “e”.
    Typing ‘C-u -4 M-z e’
    deletes all character to the fourth previous occurence of “e”.

EmacsWiki: Keyboard Macros Tricks

  • Use 0 as argument to call-last-kbd-macro C-x e to execute the macro until an error occurs (e.g. because a search failed or the end of buffer has been reached ), i.e. C-u 0 C-x e.
  • I use the following code to automate the process:

      (defun save-macro (name)                  
    "save a macro. Take a name as argument
    and save the last defined macro under
    this name at the end of your .emacs"
    (interactive "SName of the macro :") ; ask for the name of the macro
    (kmacro-name-last-macro name) ; use this name for the macro
    (find-file "~/.emacs") ; open the .emacs file
    (goto-char (point-max)) ; go to the end of the .emacs
    (newline) ; insert a newline
    (insert-kbd-macro name) ; copy the macro
    (newline) ; insert a newline
    (switch-to-buffer nil)) ; return to the initial buffer
    • Cool function for saving macros automatically to .emacs file. - on 2008-06-09
    Add Sticky Note
  • 1 more annotations...

EmacsWiki: Interactively Do Things

    • Overview of Ido

          ;;in the .emacs
      (require 'ido)
      (ido-mode t)

      To switch between buffers C-x b:

      • type some characters appearing in the buffer name, RET to visit the buffer in the front the list.
      • use C-s (next) or C-r (previous) to move through the list.
      • [Tab] display possible completion in a buffer (or visit the buffer if there is only one possible completion).
      • use C-f to fall back to find file.
      • type some characters appearing in the file name, RET to open the file in the front of the list.
      • C-s (next) or C-r (previous) to move through the list.
      • [Tab] display possible completion in a buffer (or open the file or go down the directory if there is only one possible completion).
      • type RET to go down inside the directory in front of the list.
      • type [backspace] to go up to the parent directory.
      • type two slashes to go to the root directory.
      • if you feel lost type C-f to go back temporarly to the normal find-file
      • do C-x C-d to enter Dired in this directory
      • type some characters appearing in the buffer/file name(say .cpp)
      • type C-SPC (C-@)
      • continue as normal with a list containing only the filtered names
21 May 08

GNU Emacs Manual

Emacs Manual on Regular Expression Searches

www.gnu.org/...emacs.html - Preview

emacs regexp howto toblog

  • M-- M-l
    Convert last word to lower case. Note Meta-- is Meta-minus.

    M-- M-u
    Convert last word to all upper case.

    M-- M-c
    Convert last word to lower case with capital initial.
  • C-x C-k r
    Run the last keyboard macro on each line that begins in the region
    (apply-macro-to-region-lines).
    • M-X apply-macro-to-region-lines or M-x apply [tab] since I've remapped keys so C-x C-k r doesn't work right. - on 2009-03-25
    Add Sticky Note
1 - 20 of 62 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo