Most Popular

1500 questions
10
votes
2 answers

Magit doesn't recognise git repo through ssh connection

I'm using ssh to connect to a remote server. On the server there is a git repo called MRFLSSVM. However, when I execute magit-status on: /ssh:qmServer:/home/Chang/qmCodeLab/MRFLSSVM/ Magit asks me to Create repository in…
spacegoing
  • 419
  • 2
  • 9
10
votes
4 answers

Diff of two buffers without creating temporary files

I need the diff of two buffers. One way would be to create temporary files containing the contents of these buffers and to use the diff function. However, the buffers contain sensitive information and I'd prefer not to have that information in…
tmalsburg
  • 2,570
  • 1
  • 16
  • 30
10
votes
1 answer

Using Emacs to send Tweets or Queets

I'm using Quitter or Twitter to send out short messages. Most of my Queets/Tweets go out through the web interface. However I'd like to use Emacs for it. Does anyone a good method/mode to use with Quitter or Twitter?
Jens Kubieziel
  • 681
  • 10
  • 26
10
votes
1 answer

How can I make fill-paragraph regard the formatting rules of Python docstrings?

If I press M-q in a docstring like this, then the line breaks in the docstring get messed up: def foo(word): """ This is a function that does something. @param word: str, input. @returns: True """ becomes this def foo(word): """This is…
Lenar Hoyt
  • 1,173
  • 7
  • 25
10
votes
2 answers

Prevent org-mode code block background color from bleeding through when collapsed?

I'm applying a background color to code blocks in org-mode, as shown in this line from my colortheme: '(org-block ((t (:background "#F5F5F5" :family "Source Code Pro" :height 140)))) When I collapse an item that contains a code block, the code…
ivan
  • 1,948
  • 10
  • 20
10
votes
4 answers

Can I reload a library and have defvar re-assign values?

I am developing a library and would like to reload it after editing without exiting Emacs (assume that it is on load-path): (load-library "myname") When I do this, Emacs doesn't pick up changes to defvar-bound variables. I don't want to call…
gavenkoa
  • 3,452
  • 20
  • 37
10
votes
3 answers

Get all filenames in current Dired buffer with Elisp

As the title suggests, how do I get all the file entries in a Dired buffer using Elisp?
Tu Do
  • 6,812
  • 21
  • 39
10
votes
1 answer

Is there a company backend for completion in sql-interactive-mode?

I'm using sql-interactive-mode, and I'm in need for a Company backends that will complete SQL keywords, and preferably, also column/table names of the used database. When looking around for any completion, to my surprise, there was no backend for…
ReneFroger
  • 3,850
  • 23
  • 66
10
votes
1 answer

Meaning of magit status buffer: Head, Merge, Push

Can someone explain what the top three lines of the magit status buffer mean? Especially Merge: origin/master Commit message Head: master Commit message Merge: origin/master Commit message Push: origin/master Commit message Using the…
evolved
  • 227
  • 1
  • 7
10
votes
2 answers

How can I download a web page's source from Emacs?

I want to use Emacs as an enhanced way to view the source of a page (say http://example.com). Is there some easy way to download the page directly from Emacs, maybe even through C-x C-f? I remember doing this somehow in the past (maybe thanks to…
Tikhon Jelvis
  • 6,252
  • 2
  • 28
  • 41
10
votes
2 answers

problem of loading a package at emacs startup

According to Emacs Eclim, I added the following to ~/.emacs.d/init.d for emacs-eclim: (require 'eclim) (global-eclim-mode) ; If you want to control eclimd from emacs, also add: (require 'eclimd) The output of emacs -nw --debug-init is: Debugger…
Tim
  • 5,007
  • 7
  • 32
  • 61
10
votes
4 answers

How to make shell-command run using shell profile and current directory hooks (ex. direnv)

I am trying to get shell-command and async-shell-command to integrate seamlessly with a couple of programs in my .bashrc file, specifically direnv in this example. I found that if I customized shell-command-switch, I could get shell processes to…
waymondo
  • 1,384
  • 11
  • 16
10
votes
2 answers

How can I prevent flycheck-mode from checking certain files?

I've configured Emacs to open files named *.cfg in shell-script-mode. These are config files, of course, rather than shell scripts, but 90% of the time it does what I want (mainly, good guesses about faces for comments and variable assignment). I…
10
votes
2 answers

org-babel result to a separate buffer

I use org-babel to generate some reports which can't be automatically processed, and since org is a good outline format, I print the results in org to represent them as trees. I've noticed that nesting org markup into #+begin_example block makes…
Roman Grazhdan
  • 358
  • 3
  • 9
10
votes
5 answers

Browser not opening when exporting HTML from org-mode

Org-mode can export as HTML and open on a browser with C-c C-e h o (org-export-dispatch), but the problem is that the generated html file opens in a buffer inside emacs. There is no error in the message buffer, either. How can I make it work? When I…
El Diego Efe
  • 1,621
  • 1
  • 19
  • 24