In VIM there is a command for char search:
f. After first use it can be repeated with
;. I like to navigate in line with it. You see that you need to go to bracket in a middle of a line - you press
f( and one-two
; and you are there. There's no such command in Emacs, so I had to write my own. I've managed even to implement repetition with
(setq last-search-forward-char nil)
(defun search-forward-char-continue ()
(if (and last-search-forward-char (or (eq (symbol-function last-command) (symbol-function 'search-forward-char))
(eq last-command this-command)))
(setq last-search-forward-char nil))))
(global-set-key (kbd "M-s") 'search-forward-char)
(global-set-key (kbd ";") 'search-forward-char-continue)
Key word here is
last-command. Using the same principle other commands also can be assigned to same key.
Usually users' profiles are stored in single model. When there are multiple user types, separation is made by some field like user_type.Situation is a little more complicated when different data is needed for each user type.In this article I'll describe how I solve this task.