nephewtom
  • Member for 6 years, 9 months
  • Last seen more than a month ago
  • Madrid, Spain
How to set indent to 4 spaces in nxml-mode?
17 votes

I finally found it in this issue. (setq nxml-child-indent 4 nxml-attribute-indent 4)

View answer
Org mode initial visibility with #+STARTUP
14 votes

The Org-mode manual indicates these possible values for initial visibility: #+STARTUP: overview #+STARTUP: content #+STARTUP: showall #+STARTUP: show2levels #+STARTUP: show3levels #+STARTUP: ...

View answer
Change default company mode keybindings
8 votes

I read about Change Minor Mode Keys in the fantastic Xah Lee pages. And I think I came with a solution. I found two different keymaps in company.el: company-active-map and company-search-map. So I ...

View answer
Insert column in org-mode moves the content
5 votes

Just positioning at the column: cursor here | V | Name |■Age | |--------+-----| | Tarzan | 40 | | Jane | 39 | and using M-S-right (org-table-insert-column) makes it: ...

View answer
Dired: Open files by external application in Linux
3 votes

Using & from dired prompts to open each file with an external application. Searching and trying, these elisp lines made it work: (setq dired-guess-shell-alist-user '(("\\.pdf\\'" "evince") ...

View answer
Find files with find-dired sorting by date and by size
3 votes

After doing some googling for the Linux find parameters and looking at the find-dired function, I came with these two functions that seem to work. Not sure if this is the optimal way, but at least ...

View answer
Create new major mode from cc-mode that allows comments with two dashes
3 votes

I asked this question in Xah Lee emacs blog entry, and he gave me these suggestions: i think it can be done, without much trouble. Read the elisp chapter on syntax table. basically, add the -- to ...

View answer
How to customize the rendering of the straight lines in mode line?
1 votes

Following @lawlist advise, using :box attribute for mode-line-inactive made it. The mode lines images shown in the question are from inactive frames. The second image shows an inactive frame with a ...

View answer
Bring Emacs frame to front when running emacsclient on WSL
1 votes

This is a kind of quirky way of achieving it, but it worked for me. Having frame-title-format set to its original value: (setq frame-title-format '(multiple-frames "%b" ...

View answer
Unbind CUA <C-return> key only in dired mode
1 votes

Ok, so following Drew's answer, I came across with these lines: (defun special-c-return-in-dired () (interactive) (if (derived-mode-p 'dired-mode) (dired-w32explore) (cua-set-rectangle-...

View answer
Navigating the C-source code for names with underscores
1 votes

You can also use ggtags, a frontend GNU Global. It works pretty well and it is similar to the standard etags package. From the Usage instructions: Open any file in a project and type M-x ggtags-...

View answer
Enable cua-mode in term or ansi-term mode
1 votes

I was experiencing this from some time now, and never had the time/energy to look at it. But it seems it is pretty straightforward as it is described in AnsiTermHints: ;; enable cua and transient ...

View answer
Cutting selection with CUA-mode bindings after searching
1 votes

It seems @Drew already answered in the comments of the question. This makes it: (define-key isearch-mode-map (kbd "C-x") nil) He deserves the merit. I just copy the solution here for better reading ...

View answer
Kill rectangle with cua-mode support
1 votes

This one is pretty straightforward, M-k does it. It is not listed in the mini-buffer help, and asking for help with C-? does not show more help. It can be found on this link on rectangle editing with ...

View answer
How to "svn revert <file>" with Emacs Version Control?
1 votes

As @djangoliv has mentioned, M-x vc-revert works (C-x v u on Emacs 24.5.1). When doing it over a file on a *vc-dir* buffer (opened by vc-directory command), another buffer with the differences is ...

View answer
Implement modal interface in a major mode
0 votes

So, following @Tyler advice I came with this: ;; Major mode (defvar pletter-mode-keymap (make-sparse-keymap)) (define-key pletter-mode-keymap (kbd "C-q") 'move-pletter-mode) (define-derived-...

View answer
Magit extremely slow in Windows. How do I optimize?
0 votes

Use Emacs on WSL. I did an extensive use of magit when I worked on a Linux box. But was kind of forced to use Windows 10. I tried to use Magit though I couldn't stand how slow it was. So I just ...

View answer
async-shell-command: run COMMAND without displaying the output
0 votes

Basically I added a nil, instead ??? to my question, and it is working: (add-to-list 'display-buffer-alist '("*Async Shell Command*" . (display-buffer-no-window . nil)) )

View answer
Emacs bulk indent for Python while `cua-mode` is enabled
0 votes

Binding it in use-package worked for me: (use-package python :mode ("\\.py\\'" . python-mode) :bind (:map python-mode-map ("C->" . python-indent-shift-right) ("C-<" . ...

View answer
Separation between paragraphs when exporting to PDF from org-mode
0 votes

Well, I have no idea about LaTeX, but I could found this great Visual LaTeX FAQ, that when clicking in the proper separation paragraph redirect to Zero paragraph indent section. Following those ...

View answer