I am on ubuntu. Just installed sr-speebar via marmalade. I know speedbar comes built in but I was not able using the wiki directions to get it into the same frame.
So I installed via marmalde this package speedar Maramalade
I have put (require 'sr-speedbar) in my .emacs.
The issue is that on Ubuntu windows key opens a window mode. So I can't test it. there are a whole pile of comands but I can't get it too work.
`sr-speedbar-open' Open `sr-speedbar' window. `sr-speedbar-close' Close `sr-speedbar' window.
.
How could I get this working?
Update:
set the keyboard shortcut
(require 'sr-speedbar)
(global-set-key (kbd "<f6>") 'sr-speedbar-open)
However now I get this error
Symbol's function definition is void: sr-speedbar-open
Related
In Windows 10, Emacs 26.3 with inbuilt org version 9.1.9 is working fine (Packaged binaries). Recently I tried Emacs 27.1. with inbuilt org version 9.3. While loading .org files for first time, I get the message (Shell command succeeded with no output) and org files are not rendered at all. To render it, I have to use M-x org-mode or reload the file in the buffer again. I tried to run without loading .emacs.d folder packages. The issue persists. It means, it has nothing to do with already installed other packages. I also tried with latest org version 9.3.7 and and also tried with emacs -Q. Still the issue persists. Any solutions?
I know I'm very late, but found in Jeffs words:
Evil remaps C-i to evil-jump-forward to emulate Vim’s jump lists feature2, which overwrites the default mapping for the TAB key in Org mode.
To fix the tab key’s functionality in Org mode, sacrifice Evil’s C-i backward jumping by turning it off in your configuration with the evil-want-C-i-jump option.
So to solve, just edit your init.el to look like this:
;; Install Evil and disable C-i to jump forward to restore TAB functionality in Org mode.
(use-package evil
:init (setq evil-want-C-i-jump nil)
:config (evil-mode))
source: https://jeffkreeftmeijer.com/emacs-evil-org-tab/
I am finally getting close to a nice emacs environment, based off of this baseline. However, many of the python-emacs tutorials mention things like "C-c C-c to run this in a python shell", or "C-c !" to launch a python shell". For some reason I am not getting this functionality. I am getting C-c C-c is undefined. What does work is M-x run-python.
Why am I not getting the standard behavior? I am running emacs through cygwin, which has both python and ipython installed.
Your sample init.el uses a different python mode than the tutorials you read.
python-mode.el (line 3147/3152) defines:
(define-key map [(control c)(control c)] 'py-execute-buffer)
(define-key map [(control c)(!)] 'py-shell)
but does not define run-python, which is instead defined in python.el, which is distributed with emacs since version 24.3. and is set as the default python mode in your referenced init.el.
See EmacsWiki: Programming With Python Mode Dot El for setup instructions for python-mode.el.
Context: This is GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) running on Debian 6.0.7.
When running pdb (M-x pdb), emacs switches which buffer is in which window when I set a breakpoint. I've searched the internet and here, and haven't yet found a way to stop this. Here's the scenario:
I'm using a wide window which is split hoirizontally for side-by-side working. Once I've started pdb (M-x pdb) with my python file, I have one window which has my debug session (indicating gud-pathfile.py). The other window has my pathfile.py source file. Each time I click on a line in the source and then click on the red "set breakpoint" button, the windows swap (if the .py file was in the right window, it's now in the left, etc.).
Thank you for your time and help.
Blessings,
Doug
Here's a standard solution. It makes it very easy to restore the
previous window configuration.
(winner-mode)
(global-set-key (kbd "<f7>") 'winner-undo)
(global-set-key (kbd "C-<f7>") 'winner-redo)
I just installed the emacs package dired-details from inside emacs via
M-x package-list-packages
clicked on the package name and then install in the newly opened buffer.
Then I put those lines into my .emacs:
(require 'dired-details)
(setq-default dired-details-hidden-string ">---< ")
(dired-details-install)
When I restart emacs, I get the following error:
File error: Cannot open load file, dired-details
The interesting thing is, that when I mark the code region above and apply
M-x eval-region
everything works as expected.
emacs --version
>> GNU Emacs 24.3.1
package version:
dired-details-20130328.1119
Packages you installed with package.el need to be initialized if you want to access them during emacs initialization.
Add the line
(package-initialize)
to the very beginning of your .emacs .
Also follow phil's recommendation and see the variable
package-enable-at-startup
I've just compiled and installed emacs 23.1 on my mac. It's running Leopard 10.5.8. And I've noticed that dragging and dropping does not work correctly (as it used to work with emacs 22). Now when dragging a file to the emacs icon on the dock, Emacs will start with two windows (frames in its terminology), one showing the startup screen and the other with the contents of the file. I've tried to get rid of this behaviour and I've set 'inhibit-startup-screen' option to t. But that only helped with this problem.
The other problem that I have is that when dragging a file onto a running emacs window, it justs shows the contents of the file in the existing buffer, instead of opening a new buffer (named the same as the file).
Any help with that?
I've compiled emacs myself using guidlines from this page:
link text
Also I've noticed that this version of Emacs has been rather flaky - it crashed a few times. I do not remember such situations when using previous versions. Any help will be highly appreciated.
Just to have the information regarding this problem more complete - there's a whole page in emacs info dedicated to Mac OS X builds.
Here's the link to web version: emacs info about ns events
Also I've found that when using Emacs 23 as an external editor for XCode, each file gets opened in a different frame (window). To fix this, just add:
(setq ns-pop-up-frames nil)
to your .emacs file
Putting the following in your .emacs file will help. You will either have to restart Emacs or evaluate the code.
(define-key global-map [ns-drag-file] 'my-ns-open-files)
(defun my-ns-open-files ()
"Open files in the list `ns-input-file'."
(interactive)
(mapc 'find-file ns-input-file)
(setq ns-input-file nil))