emacsemacs-speedbar

How to make speedbar list the C functions + Unable to use sr-speedbar+macro+command history


I am new to Emacs on Windows XP and have multiple queries which I could not find/understand after a lot of search.

  1. I understand that speedbar will support showing of C functions list. As mentioned in http://stackoverflow.com/questions/259364/how-do-i-configure-emacs-speedbar-for-c-sharp-mode, I added the code in .emacs as
    (speedbar 1)
       (add-to-list 'speedbar-fetch-etags-parse-list
                    '("\\.c" . speedbar-parse-c-or-c++tag))
    
    I see the speedbar startup but it never shows the functions. Maybe I need to install etags but cannot find it. I also found gtags but could never find a binary
  2. I copied sr-speedbar.el in ~/emacs.d/ directory. I added (require 'sr-speedbar) in .emacs, commented out speedbar related code, reloaded M-x ~/.emacs but did not find any sr-speedbar. If I uncomment speedbar code and comment sr-speedbar, it shows the speedbar on loading. Emacs is able to find sr-speedbar.el in ~/emacs.d/ directory since if I change filename, it shows an error: unable to find sr-speedbar.
  3. I wanted to make a keyboard macro for logging using tramp and ssh. However, when I record a macro, I have to delete multiple characters to provide the path from the beginnig i.e. emacs automatically shows the last path and so I have to delete all the characeters and then start again with ssh://. The keyboard macro records all backspaces and returns error if the backspaces are more than the length of the current path. Is there a way to avoid it
  4. I configured linum package. I want it to start at the beginning of emacs session automatically with typing M-x linum. How can I do that?
  5. Is there way to retrieve command history (not shell commands) and then replay some command Thanks again for patience on reading until the point :-)

Solution

    1. For C, C++, and other languages, supported by CEDET/Semantic, the Speedbar is able to show functions & other objects. But you need to setup Semantic correctly, for example, you can use my article in CEDET.

    2. As I understand, to enable linum-mode globally, you need to put (global-linum-mode 1) into your ~/.emacs