In org mode, C-c C-a does not show the weekly agenda.
Tried the following
https://orgmode.org/worg/orgcard.html - shows the keybinding is C-c a a. That doesn't work.
Tried to find the command for compiling the weekly agenda by searching inside the buffer showing the describe-mode. Tried using keywords agenda, compil, week.
https://www.gnu.org/software/emacs/manual/html_node/org/Agenda-commands.html
The command mentioned here - org-agenda-week-view is not recognized by emacs 26.x
What is the command called and how do I find it ?
Got it. The command is org-agenda. the keybindings need to be changed to global-keys.
Now it works.
Related
I'm running GNU Emacs 24.3.1 on Windows 7. As mentioned in this manual page, I can type
C-x d ~/ RET
to determine the location of my home directory. In my case, Emacs returns:
e:/EmacsDocs
which, according to Windows Explorer, indeed contains a file .emacs. When I open .emacs with Emacs, the file appears to be empty.
Now, I want to set Emacs so that it is in overwrite mode by default. According to this page, that can be done by adding the following to .emacs:
(setq-default overwrite-mode t)
But when I make this change to .emacs and close and reopen Emacs, Emacs does not overwrite when I select text and start typing. (Rather, it still operates in insertion mode, with new characters inserted before the cursor.)
I also tried, for example, adding this command to .emacs, which according to this page will disable cursor blinking:
(blink-cursor-mode 0)
but again, there is no change when I restart Emacs.
How can I tell if Emacs is actually reading the .emacs in the home directory (upon restarting Emacs)?
You are confusing what Emacs calls overwrite-mode with the requested behavior "overwrite when I select text and start typing".
In Emacs, the latter behavior is called delete-selection-mode, and overwrite-mode means that when you type text (without selecting anything), any existing text that follows the cursor is overwritten by what you type.
Most Emacs users do not turn on overwrite-mode by default, and they just hit the insert key (typically to the left of the home key) to toggle `overwrite-mode on/off when they need/want to.
One way to turn on delete-selection-mode by default is to put one of the following in your init file (.emacs):
(setq delete-selection-mode t)
or
(delete-selection-mode)
Another way is to customize the option delete-selection-mode using M-x customize-option RET delete-selection-mode RET and save the customized value.
Instead of editing the file outside of Emacs, just type
C-x C-f ~/.emacs
and add your configurations there. Save with
C-x C-s
and restart. This should work, since ~ in Emacs defaults to the home directory.
Is there a way to tell Emacs to automatically scroll to the end of the file upon opening it?
Note that I don't need this for every file, just for some of them. Ideally, I'd like to be able to set this behavior for all files in certain type/mode. It gets a bit annoying having to type M-x end-of-buffer every time right after opening a file.
First you can use M-> to do that quickly.
To do it automatically with certain files, you can use a hook.
(add-hook 'your-mode-hook 'end-of-buffer)
A crude method for doing so from the command line:
emacs +$(wc -l FILE_NAME)
Also don't forget help command C-h w which reveals associated key-binding if you know the command name.
C-h w type end-of-buffer (use TAB here for less typing) RET
In the message area you can see the following,
end-of-buffer is on <C-end>, M->, <menu-bar> <edit> <goto> <end-of-buf>
I want to define a custom sequence for the TODO feature of org-mode.
So I added this to the very top of the file (first column):
#+SEQ_TODO: TODO TEST DONE
Finally, when I pressed C-c C-t, the sequence wasnt appearing, it was just the normal TODO-->Done--->blank sequence.
Why wasn't my custom sequence used?
My org-agenda-files is set to:
(setq org-agenda-files '("~/Documents/org"))
Further tries:
I tried to run C-c \, this gave my the "Match:" prompt at the bottom, but didn't return any matched results.
C-c \ runs the command org-match-sparse-tree, which is an interactive
compiled Lisp function in org.el'.
I have a feeiling that C-c \ not returning any matches might indicate some underlying problem. A problem that might cause the "sequence instruction" on top not to be parsed?
Then I run C-c [ which is mapped to:
C-c [ runs the command org-agenda-file-to-front, which is an
interactive compiled Lisp function in org.el'.
This re-parses the .org file. Didn't change anything.
So again, how can I defined a custom TODO-sequence?
And also as a secondary question, why isn't C-c \ working?
I can run C-c a, which is agenda-mode, from which I can do what C-c \does, but I'm curious to know.
Thanks in advance for your time and kind concern.
Jenia
This might be too obvious to need saying, but have you tried C-c C-c with point on the #+SEQ_TODO line?
I am new to Emacs on Windows XP and have multiple queries which I could not find/understand after a lot of search.
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
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.
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
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?
Is there way to retrieve command history (not shell commands) and then replay some command
Thanks again for patience on reading until the point :-)
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.
As I understand, to enable linum-mode globally, you need to put (global-linum-mode 1) into your ~/.emacs
For 3, there are two options:
just type "/ssh:blabla" at the end of the pre-inserted directory (this directory will be ignored as witnessed by it becoming grey).
do C-a C-k to erase the content of the minibuffer.
For 5, there is repeat-complex-command bound to C-x ESC ESC and there is repeat bound to C-x z.
Something in my config is unsetting/overwriting some standard keybindings for C-c C-e so that commands in various major modes don't work properly. In AUCTeX C-c C-e should start the "insert environment" dialogue and in org-mode the same keys should start the export/publish dialogue, but in both of these modes C-c C-e is undefined and emacs just waits for more input.
I know I could start emacs with -Q and load packages until something breaks (and if I load emacs that way and open a file in org-mode, the keybindings work as they should) but, like lots of people, at some point my init file became monstrously big. Is there a quicker, smarter way?
[EDIT] Nothing in my config is unsetting C-c C-e explicitly.
The debugger might give you enough clues to sort it out. Try adding the following to the beginning of your .emacs:
(debug-on-entry 'global-unset-key)
You might need to try 'local-unset-key as well. For details see the debugger manual.
Binary search is your friend.
Go to the middle of your .emacs and add (error "here"), then launch Emacs and see if the problem persists.
If it does, then insert another error line half way between the current and the top of the file, if not, comment out the current error and add one half way between the current and the bottom.
Repeat the bisection process until you isolate the line or two which are responsible for causing the problem.
You could use C-h k C-c C-e to find out which function is bound to your combination.
In the popped up help buffer, you will get the function name, its documentation and a link to the file where it is defined. Follow that link and you will end up at the place of the function definition.
At this point, it should be simple to identify which package that is responsible for redefinition of your keybinding using the name of the file.
If this does not help, you could M-x rgrep in your customization directory for 'C-c C-e' or 'C-e' and manually check everything.